path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/parser/mage/fire/CHANGELOG.js
FaideWW/WoWAnalyzer
import React from 'react'; import { Sharrq } from 'CONTRIBUTORS'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; export default [ { date: new Date('2018-11-17'), changes: <>Updated the <SpellLink id={SPELLS.HEATING_UP.id} /> module to fix some incorrect values and to properly ...
app/pages/components/loader.js
ibjohansen/acando-react-boilerplate
'use strict'; import React from 'react'; export default React.createClass({ displayName: 'app/pages/components/loader.js', render() { return ( <div className="loader"></div> ) } });
routes/Statistic/components/Card/BorderTop.js
YongYuH/Ludo
import React from 'react'; import styled from 'styled-components'; const Wrapper = styled.div` background-color: #838383; border-bottom: 5px solid #838383; border-top: 5px solid #838383; color: white; font-size: 12px; font-weight: bold; padding: 5px 0; text-align: center; width: 100%; `; const Borde...
src/components/FooterBar/Responses/Button.js
welovekpop/uwave-web-welovekpop.club
import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import Tooltip from '@material-ui/core/Tooltip'; /* eslint-disable */ const Button = ({ onClick, disabled, count, children, tooltip, }) => ( // Wrapped in a <div> so the tooltip can listen for mouse events. <Toolt...
src/components/nav/Nav.js
lany9527/react-explore
/** * Created by littlestone on 2017/3/24. */ import React from 'react'; import {NavLink} from 'react-router-dom'; import './Nav.css'; const Nav = () => { return ( <nav className="nav"> <ul className="nav-list" data-flex="dir:left main:center box: mean"> <li className="nav-item" data-f...
src/components/Overview/Overview.react.js
DeveloperAlfa/chat.susi.ai
import './Overview.css'; import $ from 'jquery'; import allDevices from '../../images/all_devices.png'; import androidMockup from '../../images/android-mockup.jpg'; import bots from '../../images/bots.jpg'; import Close from 'material-ui/svg-icons/navigation/close'; import Footer from '../Footer/Footer.react'; import g...
src/routes/not-found/index.js
kuao775/mandragora
/** * 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...
fields/types/name/NameField.js
udp/keystone
import Field from '../Field'; import React from 'react'; import { FormField, FormInput, FormRow } from 'elemental'; module.exports = Field.create({ displayName: 'NameField', focusTargetRef: 'first', valueChanged: function(which, event) { this.props.value[which] = event.target.value; this.props.onChange({ ...
scripts/utils/connectToStores.js
rigorojas/flux-react-router-example
import React, { Component } from 'react'; import shallowEqual from 'react-pure-render/shallowEqual'; /** * Exports a higher-order component that connects the component to stores. * This higher-order component is most easily used as an ES7 decorator. * Decorators are just a syntax sugar over wrapping class in a func...
src/components/listview.js
butterproject/butter-desktop
import React from 'react' import { TransitionGroup, CSSTransition } from 'react-transition-group' import {Navbar, Toolbar, Dropdowns} from 'butter-base-components' import {RouterMenu} from 'butter-component-menu' const {Dropdown} = Dropdowns import deepEqual from 'deep-equal' import ListContainer from '../container...
src/containers/DevTools/DevTools.js
huangc28/palestine-2
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-H" changePositionKey="ctrl-Q"> <LogMonitor /...
demo/src/components/Footer/Footer.js
unsplash/react-trend
import React from 'react'; import './Footer.css'; const Footer = () => ( <footer className="footer"> Released under the <a href="https://github.com/unsplash/react-trend/blob/master/LICENSE.md">MIT</a> license. <a href="https://github.com/unsplash/react-trend">View source</a>. </footer> ); export default Foot...
docs/src/SupportPage.js
xsistens/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; export default class Page extends React.Component { render() { return ( <div> <NavMain activePage="support" /> <PageHeader title="Nee...
src/app/component/form-row/form-row.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import FormRow from '.' const column = () => ( <div style={{ backgroundColor: '#fff' }} > column </div> ) storiesOf('FormRow', module) .add('default', () => <FormRow>{column()}</FormRow>) .add('layout: half-half', () => ...
packages/material-ui-icons/src/Filter1.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Filter1 = props => <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z" /> </...
src/routes/blog/index.js
goldylucks/adamgoldman.me
import React from 'react' import Blog from './Blog' import Layout from '../../components/Layout' const title = 'Blog' function action({ path }) { return { chunks: ['blog'], title, path, description: 'A blog with my humble thoughts and diabolical schemes', component: ( <Layout path={path}...
app/components/Footer.js
rondobley/meal-planner
import React from 'react'; import { Link } from 'react-router'; class Footer extends React.Component { render() { return ( <footer> <div className='container'> <div className='row'> <div className='col-sm-12'> ...
definitions/npm/react-body-classname_v1.x.x/flow_v0.53.x-/react-body-classname_v1.x.x.js
mkscrg/flow-typed
import React from 'react'; declare module 'react-body-classname' { declare type Props = { children?: React.ChildrenArray<any>, className: string, }; declare class BodyClassName extends React$Component<Props> { static rewind(): string; } declare var exports: typeof BodyClassName; }
app/containers/ContestsPage/index.js
zmora-agh/zmora-ui
import React from 'react'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; import { gql, graphql } from 'react-apollo'; import autobind from 'autobind-decorator'; import { ContestsTable } from '../../components/ContestsTable'; import EmptyMessage from '../../components/EmptyMessag...
app/javascript/mastodon/components/avatar_overlay.js
imas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class AvatarOverlay extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, friend:...
src/svg-icons/action/highlight-off.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHighlightOff = (props) => ( <SvgIcon {...props}> <path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 1...
src/svg-icons/hardware/keyboard-capslock.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardCapslock = (props) => ( <SvgIcon {...props}> <path d="M12 8.41L16.59 13 18 11.59l-6-6-6 6L7.41 13 12 8.41zM6 18h12v-2H6v2z"/> </SvgIcon> ); HardwareKeyboardCapslock = pure(HardwareKeyboardCaps...
benchmarks/src/implementations/css-modules/Box.js
rofrischmann/fela
/* eslint-disable react/prop-types */ import classnames from 'classnames'; import React from 'react'; import View from './View'; import styles from './box-styles.css'; const Box = ({ color, fixed = false, layout = 'column', outer = false, ...other }) => ( <View {...other} className={classnames(styles[`color$...
src/cms/preview-templates/AboutPagePreview.js
hunterclarke/hunterclarke.me
import React from 'react' import PropTypes from 'prop-types' import { AboutPageTemplate } from '../../templates/about-page' const AboutPagePreview = ({ entry, widgetFor }) => ( <AboutPageTemplate title={entry.getIn(['data', 'title'])} content={widgetFor('body')} /> ) AboutPagePreview.propTypes = { entry...
src/components/loading-indicators/loading-modal.component.js
housseindjirdeh/git-point
import React from 'react'; import { StyleSheet, View, Modal, ActivityIndicator } from 'react-native'; const styles = StyleSheet.create({ container: { flex: 1, position: 'absolute', top: 0, left: 0, right: 0, bottom: 0, backgroundColor: 'rgba(0, 0, 0, 0.8)', justifyContent: 'center', ...
docs/src/pages/components/app-bar/PrimarySearchAppBar.js
lgollut/material-ui
import React from 'react'; import { alpha, makeStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import IconButton from '@material-ui/core/IconButton'; import Typography from '@material-ui/core/Typography'; import InputBase from '@m...
src/PersonItem2/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import Typography from '../Typography'; import classNames from 'classnames'; import styles from './styles.css'; import Wrapper from '../Wrapper'; import PersonItem1 from '../PersonItem1'; function PersonItem2(props) { let opt = ''; opt = ( <T...
src/routes.js
aleksa95/universal-redux-boilerplate
/* eslint react/jsx-filename-extension: 0 */ import React from 'react'; import cookie from 'react-cookie'; import { IndexRoute, Route } from 'react-router'; import { App, Homepage, NotFound, Login, SignUp, Dashboard, EnsureAuthentication } from './containers'; import { checkAuth as _checkAuth } from './actions/auth-act...
src/components/common/FileInfo.js
redux-autoform/redux-autoform-material-ui
import React from 'react'; import filesize from 'filesize'; import PropTypes from 'prop-types'; import Dialog from 'material-ui/Dialog/Dialog'; import { cyan500 } from 'material-ui/styles/colors'; import FontIcon from 'material-ui/FontIcon/FontIcon'; import FlatButton from 'material-ui/FlatButton/FlatButton'; export d...
app/javascript/mastodon/features/status/components/detailed_status.js
rutan/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import StatusContent from '../../../components/status_content'; import MediaGallery from...
src/components/Calculator/CalculatorInput.js
Batname/Yeoman_react_tests
import React from 'react'; // import _ from 'lodash'; import CalculatorButton from './CalculatorButton'; // class CalculatorActions{ // constructor(elem){ // _.assign(this, elem); // this.elem = elem; // } // addEventListener(){ // this.elem.addEventListener('click', this.handleClick.bind(this)); // ...
src/svg-icons/content/flag.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentFlag = (props) => ( <SvgIcon {...props}> <path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/> </SvgIcon> ); ContentFlag = pure(ContentFlag); ContentFlag.displayName = 'ContentFlag'; ContentFlag.muiName = '...
src/components/ScrollView.js
omeid/react-native-mock
import React from 'react'; import EdgeInsetsPropType from '../propTypes/EdgeInsetsPropType'; import PointPropType from '../propTypes/PointPropType'; import ScrollResponder from '../mixins/ScrollResponder'; import View from './View'; import ViewStylePropTypes from '../propTypes/ViewStylePropTypes'; import ScrollViewMana...
app/pages/admin/Info/index.js
czy0729/react-alumni
/** * 校友录基本信息 * @Date: 2017-01-27 15:58:37 * @Last Modified by: Administrator * @Last Modified time: 2017-03-21 05:43:30 */ 'use strict'; import React from 'react'; import { form, observer } from 'decorators'; import { $alumni } from 'stores'; import { Button } from 'antd-mobile'; import { Spin, ButtonWrap, App...
src/components/OverlayBookmarkIllustButton.js
alphasp/pxview
/* eslint-disable camelcase */ import React from 'react'; import { View, StyleSheet, Text } from 'react-native'; import BookmarkIllustButton from './BookmarkIllustButton'; const styles = StyleSheet.create({ container: { backgroundColor: 'rgba(0,0,0,0.6)', bottom: 0, right: 0, position: 'absolute', ...
modules/State.js
gdi2290/react-router
import React from 'react'; var { object } = React.PropTypes; /** * A mixin for components that need to know the path, routes, URL * params and query that are currently active. * * Example: * * import { State } from 'react-router'; * * var AboutLink = React.createClass({ * mixins: [ State ], * re...
Gryffindor/app/containers/Nav.js
Acheron-VAF/Acheron
import React, { Component } from 'react'; import Radium, { Style } from 'radium'; import {StyleRoot} from 'radium'; import { ipcRenderer } from "electron"; import Search from '../components/Search'; class Nav extends Component { constructor(props) { super(props); this.state = {}; } getStyles(...
zoho-experiments/internals/templates/containers/App/index.js
glandre/prototypes
/** * * App.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot ...
src/components/colorChoser.js
EncontrAR/backoffice
import React, { Component } from 'react'; import Button from './uielements/button'; import Popover from './uielements/popover'; import '../style/colorChooser.less'; export default class ColorChoser extends Component { constructor(props) { super(props); this.handleVisibleChange = this.handleVisibleChange.bind...
client/components/ProfilePic.js
gut-js/gut
import React from 'react'; import { Modal, Button } from 'react-bootstrap'; class ProfilePic extends React.Component { constructor(){ super(); this.handleSubmit = this.handleSubmit.bind(this); } handleSubmit(){ //start here // const { resetPoll, fetchYelpData } = this.props.pollActions; // const...
client/src/components/dashboard/profile/view-profile.js
iNeedCode/mern-starter
import React, { Component } from 'react'; import cookie from 'react-cookie'; import { connect } from 'react-redux'; import { fetchUser } from '../../../actions/index'; import UserInfo from './user-info'; class ViewProfile extends Component { componentWillMount() { // Fetch user data prior to component mounting ...
src/index.js
djeebus/retroroms
import {remote} from 'electron'; import 'babel-polyfill'; // generators import React from 'react'; import { render as renderReact } from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './redux/store'; import Settings from './components/settings'; const store = configureStore(remote.app...
src/components/BrandName.js
alexravs/midgar
import React from 'react'; import { Link } from 'react-router'; import '../../css/brand-name.scss'; const BrandName = () => ( <Link to='/'> <span id='brand-name'>Midgar</span> </Link> ); export default BrandName;
examples/huge-apps/routes/Calendar/components/Calendar.js
chunwei/react-router
import React from 'react'; class Calendar extends React.Component { render () { var events = [{ id: 0, title: 'essay due' }]; return ( <div> <h2>Calendar</h2> <ul> {events.map(event => ( <li key={event.id}>{event.title}</li> ))} </ul> ...
src/app/containers/AddSkipassButton.js
blobor/buka
import React from 'react' import classNames from 'classnames' import { connect } from 'react-redux' import { FloatingActionButton } from 'material-ui' import { ContentAdd } from 'material-ui/svg-icons' import { storeSkipass } from '../core/actions/stored-skipasses.actions' const AddSkipassButton = ({ canBeAdded, stor...
native/tv_gridview/index.ios.js
ycinfinity/react-tv-gridview
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, View } from 'react-native'; import GridView from './ios_component/GridView/GridView'; const Config = GridView.Config; const Layout = GridView.Layout; const rowConfi...
components/SlideShow/src/index.js
geoffdavis92/react-utilities
import React from 'react'; class Component extends React.Component { render() { return ( <div /> ); } } export default Component;
app/components/admin-dashboard.js
sirbrillig/voyageur-js-client
import React from 'react'; import { connect } from 'react-redux'; import timeago from 'lib/timeago'; import { fetchEvents } from 'lib/actions/admin.js'; import classNames from 'classnames'; import debugFactory from 'debug'; const debug = debugFactory( 'voyageur:admin-dashboard' ); class AdminDashboard extends React.C...
src/components/NavLinks/index.js
fathomlondon/fathomlondon.github.io
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'gatsby'; export function NavLinks({ onLinkClick }) { const links = [ { path: '/', name: 'Home', }, { path: '/about', name: 'About', }, { path: '/what-we-do', name: 'What we do', }, { path: '/how-we-...
ui/js/pages/event/EventDates.js
ericsoderberg/pbc-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment-timezone'; import { getUnavailableDates } from '../../actions'; import Button from '../../components/Button'; const NUMBER_OF_WEEKS = 52; export default class EventDates extends Component { constructor() { ...
src/routes/login/index.js
cuijiaxu/react-front
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'dva' import { Button, Row, Form, Input } from 'antd' import { config } from '../../utils' import styles from './index.less' const FormItem = Form.Item const Login = ({ login, dispatch, form: { getFieldDecorator, valida...
src/client/react/user/components/menus/PostRaceMenu.js
bwyap/ptc-amazing-g-race
import React from 'react'; import autobind from 'core-decorators/es/autobind'; import { withRouter } from 'react-router-dom'; import { Position, Spinner, Menu, MenuItem, MenuDivider, Intent } from '@blueprintjs/core'; import { connect } from 'react-redux'; import { logout } from '../../../../actions/authActions'; impor...
src/scripts/views/leaderboardPage.js
TayLang/IronPong
import React from 'react' import ACTIONS from '../actions.js' import STORE from '../store.js' import NavBar from './components/navBar' import Header from './components/header' var LeaderboardPage = React.createClass({ componentWillMount: function() { ACTIONS.fetchUsers() STORE.on('dataUpdated', () => { this.se...
admin/src/components/MobileNavigation.js
geminiyellow/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; import { Container } from 'elemental'; const Transition = React.addons.CSSTransitionGroup; var MobileListItem = React.createClass({ displayName: 'MobileListItem', propTypes: { className: React.PropTypes.string, chi...
src/components/forms/FormCheckbox.js
ProAI/react-essentials
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import Field from './Field'; import useIdentifier from '../../hooks/useIdentifier'; import useFormField from './useFormField'; import FieldPropTypes from './FieldPropTypes'; const propTypes = { ...FieldPropTypes, label: Pro...
fixtures/ssr/server/render.js
empyrical/react
import React from 'react'; import {renderToString} from 'react-dom/server'; import App from '../src/components/App'; let assets; if (process.env.NODE_ENV === 'development') { // Use the bundle from create-react-app's server in development mode. assets = { 'main.js': '/static/js/bundle.js', 'main.css': '',...
addons/info/src/components/markdown/text.js
enjoylife/storybook
import React from 'react'; import PropTypes from 'prop-types'; import { baseFonts } from '../theme'; const defaultProps = { children: null }; const propTypes = { children: PropTypes.node }; export function P(props) { const style = { ...baseFonts, fontSize: '15px', }; return <p style={style}>{props.child...
packages/forms/src/UIForm/fields/MultiSelectTag/displayMode/TextMode.component.js
Talend/ui
import PropTypes from 'prop-types'; import React from 'react'; import Badge from '@talend/react-components/lib/Badge'; import { TextMode as FieldTemplate } from '../../FieldTemplate'; import theme from './TextMode.scss'; function getLabel(titleMap, value) { const itemConf = titleMap.find(item => item.value === value...
mod10/man/src/demo.js
mauricedb/mwd-2017-02-20
import React from 'react'; import ReactDOM from 'react-dom'; // class Hello extends React.Component { // render(){ // return React.createElement('h1', null, 'Hello') // } // } class Clock extends React.Component { constructor() { super(); this.state = { now: new Date().toLocaleTimeSt...
src/svg-icons/action/card-travel.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCardTravel = (props) => ( <SvgIcon {...props}> <path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H...
src/components/Become/Student/Student.js
edgarallanglez/foxacademia_frontend
/** * 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 withStyles from 'isom...
src/routes/Processes/components/InstanceList.js
sljuka/buzzler-ui
import InstanceListItem from './InstanceListItem' import Radium from 'radium' import React from 'react' import { mediaQueries } from '../../../styles/global' const InstanceList = (props) => { const { process, showInstance } = props return ( <ul style={style}> {process.instances.map(instance =>...
jenkins-design-language/src/js/components/material-ui/svg-icons/hardware/keyboard-arrow-right.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const HardwareKeyboardArrowRight = (props) => ( <SvgIcon {...props}> <path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/> </SvgIcon> ); HardwareKeyboardArrowRight.displayName = 'HardwareKeyboardArrowRight'; HardwareKeyboardArrowRight.muiNa...
examples/with-redux-wrapper/components/AddCount.js
JeromeFitz/next.js
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { addCount } from '../store/count/action' const AddCount = ({ count, addCount }) => { return ( <div> <style jsx>{` div { padding: 0 0 20px 0; } `}</style> ...
app/javascript/mastodon/features/compose/components/favourite_tags.js
masarakki/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Link from 'react-router-dom/Link'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; const messages = defineMessages({ favourite_tags: { id: 'compose_form.favourite_tags', defaultM...
docs/src/NotFoundPage.js
apisandipas/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const NotFoundPage = React.createClass({ render() { return ( <div> <NavMain activePage='' /> <PageHeader title='404' subT...
src/index.js
sateez/salestracker
/* eslint-disable import/default */ import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import configureStore from './store/configureStore'; import { loadCars } from './actions...
components/Layout.js
nickaugust/dwmjs
import React from 'react' const style = { horizontal: { display: 'flex', flexDirection: 'row', height: '100%', flexGrow: 1 }, vertical: { display: 'flex', flexDirection: 'column', height: '100%', flexGrow: 1 } } /** * A <Layout> component is a container for a variable number ...
docs/app/Examples/modules/Progress/Content/ProgressExampleProgressPercent.js
aabustamante/Semantic-UI-React
import React from 'react' import { Progress } from 'semantic-ui-react' const ProgressExampleProgressPercent = () => ( <Progress value='4' total='5' progress='percent' /> ) export default ProgressExampleProgressPercent
src/react/JSONTree/JSONBooleanNode.js
bloodyowl/redux-devtools
import React from 'react'; import reactMixin from 'react-mixin'; import { SquashClickEventMixin } from './mixins'; import hexToRgb from '../../utils/hexToRgb'; const styles = { base: { paddingTop: 3, paddingBottom: 3, paddingRight: 0, marginLeft: 14 }, label: { display: 'inline-block', ma...
app/javascript/mastodon/features/getting_started/index.js
musashino205/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnLink from '../ui/components/column_link'; import ColumnSubheading from '../ui/components/column_subheading'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import Prop...
src/daypicker/DayPickerBody.js
buildo/rc-datepicker
import React from 'react'; import range from 'lodash/range'; import t from 'tcomb'; import { props } from 'tcomb-react'; import View from 'react-flexview'; import { pure, skinnable } from '../utils'; import { Value, Mode, MomentDate } from '../utils/model'; import InvalidDate from '../InvalidDate'; import Picker from '...
view/dva/src/components/admin/Tags/TagForm.js
xuzhenyang/ZeroCola
import React from 'react'; import { Button, Form, Input } from 'antd'; const FormItem = Form.Item; const TagForm = Form.create()((props) => { const { onSubmit, form: { getFieldDecorator, getFieldsValue, validateFields, resetFields } } = p...
src/pages/order.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import OrderWithData from '../apps/expenses/components/OrderWithData'; import Header from '../components/Header'; import Body from '../components/Body'; import Footer from '../components/Footer'; import Colle...
ui/js/dfv/src/fields/website/index.js
pods-framework/pods
import React from 'react'; import PropTypes from 'prop-types'; import BaseInput from 'dfv/src/fields/base-input'; import { toBool } from 'dfv/src/helpers/booleans'; import { FIELD_COMPONENT_BASE_PROPS } from 'dfv/src/config/prop-types'; const Website = ( props ) => { const { fieldConfig = {} } = props; const { ...
ui/src/main/js/components/Time.js
medallia/aurora
import moment from 'moment'; import React from 'react'; export function RelativeTime({ ts }) { return <span>{moment(ts).fromNow()}</span>; }
src/Fabric/Type/StringType.js
reactmob/dos-filter
import React from 'react'; import { TextField } from 'office-ui-fabric-react/lib/TextField'; import BaseStringType from '../../Type/StringType'; import AbstractRenderer from './AbstractRenderer'; export default class StringType extends BaseStringType { static defaultProps = { doRenderOperatorList: Abstract...
react-redux/public/app/index.js
react-scott/react-learn
/** * * 在入口文件中,我们需要把App和redux建立起联系。Provider是react-redux提供的组件, * 它的作用是把store和视图绑定在了一起,这里的Store就是那个唯一的State树。 * 当Store发生改变的时候,整个App就可以作出对应的变化。 * 这里的会传进Provider的props.children里。 * * */ import '../scss/pure.scss' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import App...
examples/piechart/index.js
joshblack/react-d3
import React from 'react'; import App from './components/App'; window.React = React; React.render( <App />, document.getElementById('root') );
src/svg-icons/editor/pie-chart-outlined.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorPieChartOutlined = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm1 2.07c3.61.45 6.48 3.33 6.93 6.93H13V4.07zM4 12c0-4.06 3.07-7.44 7-7.93v15.87c-...
src/components/App/NavigationMixin.js
joshwcomeau/framework.js
/* * React.js Starter Kit * Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ 'use strict'; import React from 'react'; import ExecutionEnvironment from 'react/lib/Exe...
tests/react/useRef_hook.js
gabelevi/flow
// @flow import React from 'react'; class Foo extends React.Component<{}, void> {} class Bar extends React.Component<{}, void> {} { const stringValue: {current: string} = React.useRef("abc"); // Ok const numberValue: {current: number} = React.useRef(123); // Ok const booleanValue: {current: boolean} = React.us...
src/svg-icons/device/sd-storage.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSdStorage = (props) => ( <SvgIcon {...props}> <path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/> </SvgIcon> ); DeviceSdStorage ...
node_modules/react-bootstrap/es/CarouselCaption.js
firdiansyah/crud-req
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/ChessboardOptionEditor.js
yo35/rpb-chessboard
/****************************************************************************** * * * This file is part of RPB Chessboard, a WordPress plugin. * * Copyright (C) 2013-2022 Yoann Le Montagner <yo35 -at- melix.net> * ...
react-ui/src/components/about/Skill.js
MaGuangChen/resume-maguangchen
import React from 'react'; import Percentage from './Percentage'; import react from '../../images/react.svg'; import redux from '../../images/redux.svg'; import scss from '../../images/scss.svg'; import graphQL from '../../images/graphQL.svg'; import webpack from '../../images/webpack.svg'; import node from '../../im...
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-bricks-ul-ol.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, SectionMixin, Tools} from '../common/common.js'; import Factory from './factory.js'; import './ul-ol.less'; Factory.createList = function (tag) { return React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, ...
KDReactNative/KDClass/MainPage/KDOldIndexIos.js
csyibei/KDReactNative
/** * Created by kaidi on 2016/10/12. */ /** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, Navigator, DeviceEventEmitter } from 'react-native'; var tabBar...
week3/react/express-react/views/bootstrap/Button.js
jfhinchcliffe/Coderfactory_Term3_Notes
import React from 'react' export default function Button({ type = 'default', name="name" }){ return ( <div className={ ` btn btn-${ type }` }> { name } </div> ) }
src/components/theme-giraffe/thanks.js
MoveOnOrg/mop-frontend
import React from 'react' import PropTypes from 'prop-types' import ThanksNextPetition from '../../containers/thanks-next-petition' const Thanks = ({ sharedSocially, isCreator, renderRawLink, renderTwitter, renderFacebook, renderMessenger, renderMail, renderCopyPaste, nextPetition }) => ( <div cla...
wrappers/json.js
WanderlandTravelers/wanderlandtravelers.github.io
import React from 'react' import Helmet from 'react-helmet' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> <Helmet tit...
pages/projects/atmist/index.js
DarcyChan/darcychan.com
import React from 'react'; import { Artwork, ArtworkBrand } from 'components/artwork'; import { PageContent } from 'components/page'; import { Image } from 'components/common'; /* eslint-disable quotes */ exports.data = { id: 1, path: `/projects/atmist/`, category: `project`, type: `artwork`, titl...
src/app/components/shared/sider.js
rujianwang/ant-design-aspnetzero
import React from 'react'; import { Menu, Icon } from 'antd'; import { Link } from 'dva/router'; import styles from './main.less'; import { config } from '../../../utils'; function getMenus(menuArray) { return menuArray.map((item) => { if (!!item.items && item.items.length > 0) { return ( <Menu.Sub...
src/components/Footer.js
rabbotio/minemark
import React from 'react' // Styles import styled from 'styled-components' const Divz = styled.div` ul { list-style: none; padding: 0; } ul li{ display: inline; } ` const facebook = () => { window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(document.URL)}&t=${encodeURIComponent(...
js/components/SidebarItem.react.js
abroder/puppycat
import React from 'react' import AppDispatcher from '../dispatcher/AppDispatcher' var styles = { display: 'flex', flexDirection: 'column', padding: '10px', borderBottom: '1px solid #DFDFDF' } var titleStyles = { margin: '0px', fontWeight: 'bold', width: '100%', whiteSpace: 'nowrap', overflow: 'hid...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/SvgInclusion.js
bttf/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
src/client/auth/requireauth.react.js
langpavel/react-svg-path-editor
import Component from '../components/component.react'; import React from 'react'; import User from '../users/user'; export default function requireAuth(BaseComponent) { return class RequireAuth extends Component { static displayName = `${BaseComponent.name}RequireAuth`; static willTransitionTo(transition)...
react_class/setup.js
devSC/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, Text, View } from 'react-native'; import Student from './Student' import MiStudent from './MiStudent' export default class setup extends Component { co...
src/svg-icons/maps/traffic.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsTraffic = (props) => ( <SvgIcon {...props}> <path d="M20 10h-3V8.86c1.72-.45 3-2 3-3.86h-3V4c0-.55-.45-1-1-1H8c-.55 0-1 .45-1 1v1H4c0 1.86 1.28 3.41 3 3.86V10H4c0 1.86 1.28 3.41 3 3.86V15H4c0 1.86 1.28 3.41...
src/app/container/checkout-payment-partial.js
all3dp/printing-engine-client
import React from 'react' import compose from 'recompose/compose' import withProps from 'recompose/withProps' import withState from 'recompose/withState' import withHandlers from 'recompose/withHandlers' import {connect} from 'react-redux' import * as coreActions from '../action/core' import * as navigationActions fro...