path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
app/containers/FacturesDistributeur/index.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { push } from 'react-router-redux'; import { createStructuredSelector } from 'reselect'; import { List, ListItem, makeSelectable } from 'material-ui/Lis...
examples/forms-bootstrap/src/components/dialogs-create-overlay/Layout.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import Hook from './Hook'; import hookCode from '!raw-loader!./Hook'; export default createReactClass({ displayName: 'Layout', render: function() { return ( <div className="example"> <h3> Dialog: Create - Ove...
test/test_helper.js
sadooghi/React_Blog
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...
examples/polling/src/components/EditLink.js
lore/lore
import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; export default createReactClass({ displayName: 'EditLink', propTypes: { tweet: PropTypes.object.isRequired }, onEdit: function() { const { tweet } = this.props; lore.dialog.show(func...
src/client/auth/login.react.js
MartinPavlik/este
import './login.styl'; import Component from '../components/component.react'; import React from 'react'; import exposeRouter from '../components/exposerouter.react'; import {focusInvalidField} from '../lib/validation'; @exposeRouter export default class Login extends Component { static propTypes = { actions: Re...
src/components/BookingsTable/Components/ColumnHeader.js
humancatfood/bat-fe-test
import React from 'react'; import PropTypes from 'prop-types'; import { useSelector, useDispatch } from 'react-redux'; import TableCell from '@material-ui/core/TableCell'; import TableSortLabel from '@material-ui/core/TableSortLabel'; import { sortBy } from 'data/actions'; const ColumnHeader = ({ sortValue, label,...
src/events/Tile.js
lakshmikanthadn/bookMyShow
import React from 'react'; import {Link} from 'react-router'; var weekday = new Array(7); weekday[0] = "Sunday"; weekday[1] = "Monday"; weekday[2] = "Tuesday"; weekday[3] = "Wednesday"; weekday[4] = "Thursday"; weekday[5] = "Friday"; weekday[6] = "Saturday"; export default class Tile extends...
src/components/study.js
onepiece8971/rememberNote
import React from 'react'; import {TouchableOpacity} from 'react-native'; import CS from '../css/convertSize'; import Svg, {Path} from 'react-native-svg'; import { AppStatusBar, MainView, Occupied } from '../css/styles'; import { TopView, TopText, ContentView, RowText, TextView, RememberImage, Occup...
src/svg-icons/action/view-quilt.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewQuilt = (props) => ( <SvgIcon {...props}> <path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"/> </SvgIcon> ); ActionViewQuilt = pure(ActionViewQuilt); ActionViewQuilt.displayN...
src/templates/tag-template.js
Amine-H/Amine-H.github.io
// @flow strict import React from 'react'; import { graphql } from 'gatsby'; import Layout from '../components/Layout'; import Sidebar from '../components/Sidebar'; import Feed from '../components/Feed'; import Page from '../components/Page'; import Pagination from '../components/Pagination'; import { useSiteMetadata }...
docs/app/Examples/collections/Table/Variations/TableExampleStackable.js
shengnian/shengnian-ui-react
import React from 'react' import { Table } from 'shengnian-ui-react' const TableExampleStackable = () => ( <Table stackable> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell textAlign='right'>Notes</Ta...
src/svg-icons/action/class.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionClass = (props) => ( <SvgIcon {...props}> <path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"/> </SvgIcon> ); ActionClass = pure(ActionClass);...
client/components/Navigation.js
horiaradu/twitter-challenge
import React from 'react'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import {hashHistory} from 'react-router'; import {Navbar, Nav, NavItem, NavDropdown, MenuItem} from 'react-bootstrap'; class Dashboard extends React.Component { constructor(props) { super(props); this.shouldComponentUpda...
src/Well.js
RichardLitt/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Well = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'well' }; }, render() { let classes = this.getBsClassSet(); return ( <di...
examples/with-stomp/useClient.js
azukaru/next.js
import React from 'react' import { Stomp } from '@stomp/stompjs' let stompClient const useClient = () => { const [client, setClient] = React.useState(stompClient) React.useEffect(() => { if (!stompClient) { stompClient = Stomp.client(process.env.NEXT_PUBLIC_STOMP_SERVER) } if (!client) { ...
src/svg-icons/av/volume-off.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVolumeOff = (props) => ( <SvgIcon {...props}> <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86...
client/trackit-client/src/App.js
sankalpshere/trackit
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h1 className="App-title">Track...
docs/src/app/components/pages/components/List/ExampleNested.js
ichiohta/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import ActionGrade from 'material-ui/svg-icons/action/grade'; import ContentInbox from 'material-ui/svg-icons/content/inbox'; import ContentDrafts from 'material-ui/svg-icons/content/draft...
src/svg-icons/maps/traffic.js
jacklam718/react-svg-iconx
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/svg-icons/action/donut-large.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDonutLarge = (props) => ( <SvgIcon {...props}> <path d="M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18....
docs/app/Examples/views/Statistic/Content/Labels.js
jcarbo/stardust
import React from 'react' import { Statistic } from 'stardust' const { Label, Value } = Statistic const Labels = () => ( <div> <Statistic> <Value>2,204</Value> <Label>Views</Label> </Statistic> <Statistic> <Value value='2,204' /> <Label label='Views' /> </Statistic> <St...
src/svg-icons/action/trending-down.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrendingDown = (props) => ( <SvgIcon {...props}> <path d="M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"/> </SvgIcon> ); ActionTrendingDown = pure(ActionTrendingDown); ActionTre...
node_modules/native-base/src/basic/Switch.js
odapplications/WebView-with-Lower-Tab-Menu
import React, { Component } from 'react'; import { Switch as SwitchNB } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; class Switch extends Component { render() { return ( <SwitchNB ref={c => this._root = c} {...this.pr...
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js
imDangerous/react-native
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; export default class WelcomeText extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </...
src/js/components/icons/base/Copy.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/docs/examples/EyeIcon/Example.js
chadacious/ps-react-chadacious
import React from 'react'; import EyeIcon from 'ps-react-chadacious/EyeIcon'; /** Custom message */ export default function Example() { return <EyeIcon /> }
src/containers/Patients/PatientSocial.js
yogakurniawan/cerebral-app
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import styles from './Patients.scss'; export default class PatientSocial extends Component { handleSubmit = () => { } render() { return ( <div className={'container ' + styles.content}> <Helmet title="Patient Social"...
src/components/Help/Index.js
hao123-fe/weekly-report-generator
import React from 'react' import ReactDOM from 'react-dom' import PropTypes from 'prop-types' import help from './help.md' export default class Help extends React.Component { static contextTypes = { theme: PropTypes.object } componentDidMount () { ReactDOM.findDOMNode(this.refs.md).innerHTML = help } ...
packages/dante2/src/editor/components/blocks/unsubscribe.js
michelson/Dante
import React from 'react' //import { Popover } from 'react-bootstrap'; //import {Popover} from 'react-popover' import {UpdateData} from "./commons.js" import { HexColorPicker } from "react-colorful"; import { EditorBlock } from 'draft-js'; export default class UnsubscribeBlock extends React.Component { constructor...
test/rows.spec.js
itsolutions-dev/react-tablify
// @flow import React from 'react'; import expect from 'expect'; import ReactTestUtils from 'react-dom/test-utils'; import { expectComponentToMatch } from './utils'; import { Row } from '../src/'; describe('rows', () => { describe('Row', () => { it('should pass props', () => { expectComponentToMatch(<Row ...
app/javascript/mastodon/features/account_gallery/components/media_item.js
mecab/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Permalink from '../../../components/permalink'; class MediaItem extends ImmutablePureComponent { static propTypes = { media: ImmutablePropTypes.map.i...
app/app.js
BrackCurly/qwery-me
import React from 'react'; import QueryEditor from './query-editor.js'; export default class App extends React.Component { render () { return ( <div> <header className="header"> <h1 className="header-title">qwery.me <span className="header-tag">alpha</span></h1> </header> <QueryEdit...
app/javascript/mastodon/features/account_timeline/components/moved_note.js
masarakki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import AvatarOverlay from '../../../components/avatar_overlay'; import DisplayNam...
js/redux/learn-redux/node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js
austinjalexander/sandbox
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
app/components/common/ErrorMessage.js
dhilt/dharmadict
import React from 'react' import PropTypes from 'prop-types' function ErrorMessage (props) { return ( <div data-test-id="ErrorMessage" className="form__error-wrapper js-form__err-animation"> <p data-test-id="ErrorMessage.text" className="form__error"> {props.error} </p> </div> ...
app/javascript/mastodon/features/compose/components/text_icon_button.js
codl/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class TextIconButton extends React.PureComponent { static propTypes = { label: PropTypes.string.isRequired, title: PropTypes.string, active: PropTypes.bool, onClick: PropTypes.func.isRequired, ariaControls: PropTypes.s...
app/containers/Invoice/InvoiceForm.js
danielmoraes/invoices-web-client
import React from 'react' import { Form } from 'components' import { Invoice } from 'api/entity-schema' import { InvoiceType } from 'api/enums' import { formatDate } from 'lib/formatter' const formLayout = (data) => { let layout = [ [ 'description' ], [ 'invoiceDate' ], [ 'invoiceNumber' ], [ 'benef...
packages/material-ui-icons/src/LocationSearching.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let LocationSearching = props => <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77...
src/stockline/StockLineChartBasic.js
marzolfb/rn-art-d3-examples
/* Copyright 2016 Capital One Services, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
src/svg-icons/hardware/speaker-group.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSpeakerGroup = (props) => ( <SvgIcon {...props}> <path d="M18.2 1H9.8C8.81 1 8 1.81 8 2.8v14.4c0 .99.81 1.79 1.8 1.79l8.4.01c.99 0 1.8-.81 1.8-1.8V2.8c0-.99-.81-1.8-1.8-1.8zM14 3c1.1 0 2 .89 2 2s-.9 2-2...
app/app/components/AdminPanel/Users/AddUser.js
lycha/masters-thesis
import React from 'react'; import axios from 'axios'; class AddUser extends React.Component { getQuery(e) { e.preventDefault(); let user = { name: this.refs.name.value, email: this.refs.email.value, password: this.refs.password.value }; this.refs.name.value = ""; this.refs.em...
tests/fixtures/forwardRef.js
adriantoine/enzyme-to-json
import React from 'react'; export const ForwardRefWithDefaultProps = React.forwardRef((props, ref) => ( <div className={`basic-class ${props.className}`} onClick={function handleOnClick() {}} ref={ref} > <div id="group-id" className="group"> <span>{props.children}</span> <span className...
src/parser/priest/discipline/modules/spells/LuminousBarrier.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatNumber, formatPercentage } from 'common/format'; import { TooltipElement } from 'common/Tooltip'; import Analyzer from 'parser/core/Analyzer'; import Stat...
test/ProgressBarSpec.js
sheep902/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ProgressBar from '../src/ProgressBar'; import {shouldWarn} from './helpers'; const getProgressBarNode = wrapper => { return React.findDOMNode(ReactTestUtils.findRenderedDOMComponentWithClass(wrapper, 'progress-bar')); }; descri...
src/components/ForecastList.js
frostiebot/whether
import React, { Component } from 'react'; import ForecastItem from './ForecastItem'; import TemperatureScaleToggle from './TemperatureScaleToggle'; import '../stylesheets/components/ForecastList.scss'; class ForecastList extends Component { constructor(props) { super(props); this.handleTemperat...
src/cms/preview-templates/page-preview.js
hb-gatsby/gatsby-starter-lumen
// @flow strict import React from 'react'; import type { Entry, WidgetFor } from '../../types'; type Props = { entry: Entry, widgetFor: WidgetFor }; const PagePreview = ({ entry, widgetFor }: Props) => { const body = widgetFor('body'); const title = entry.getIn(['data', 'title']); return ( <div classNa...
lib/components/MapView.js
lelandrichardson/react-native-maps
import PropTypes from 'prop-types'; import React from 'react'; import { EdgeInsetsPropType, PointPropType, Platform, Animated as RNAnimated, requireNativeComponent, NativeModules, ColorPropType, findNodeHandle, ViewPropTypes, View, } from 'react-native'; import MapMarker from './MapMarker'; import M...
src/svg-icons/navigation/first-page.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationFirstPage = (props) => ( <SvgIcon {...props}> <path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/> </SvgIcon> ); NavigationFirstPage = pure(NavigationFirstPage); NavigationFirstPag...
mockTrello/src/index.js
balaSpyrus/code
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import 'react-app-polyfill/ie11'; import 'react-app-polyfill/stable'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work...
frontend/src/Movie/MovieFileStatus.js
Radarr/Radarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import getQueueStatusText from 'Utilities/Movie/getQueueStatusText'; import translate from 'Utilities/String/translate'; import styles from './MovieFileStatus.css'; function MovieFileStatus(props) { const { isAvai...
frontend/app/js/utils/store.js
serverboards/serverboards
import createRootReducer from '../reducers' import thunk from 'redux-thunk'; import rpc from '../rpc' import { createStore, applyMiddleware, compose } from 'redux' import { hashHistory } from 'react-router' import { merge, object_is_equal } from 'app/utils' import React from 'react' const react_redux_connect = require(...
src/components/FooterBar/SkipReasonsList.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@material-ui/core/ListItemText'; const SkipReasonsList = ({ reasons, onSelect, }) => ( <List className="SkipReasonsList"> {rea...
src/svg-icons/device/data-usage.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDataUsage = (props) => ( <SvgIcon {...props}> <path d="M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95zM12 19c-3.87 0-7-3.13-7-7 0-3.53...
src/client.js
JimmyJLin/allthingsfrenchie-front
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './redux/create'; import ApiClient from './helpers/ApiClient'; // import io from 'socket.io-client'; imp...
packages/daheim-app-ui/src/server.js
daheim/daheim-app
import './optional_newrelic' import Express from 'express' import http from 'http' import spdy from 'spdy' import fs from 'fs' import React from 'react' import ReactDOM from 'react-dom/server' import httpProxy from 'http-proxy' import cookieParser from 'cookie-parser' import path from 'path' import request from 'reques...
src/renderer/components/MapFilter/DataExportDialog/index.js
digidem/ecuador-map-editor
import React from 'react' import Dialog from '@material-ui/core/Dialog' import ViewWrapper from '../ViewWrapper' import { Content } from './Content' export const DataExportDialog = ({ filter, getMediaUrl, observations, onClose, open, presets }) => ( <Dialog fullWidth open={open} onClose={onC...
src/js/components/pc_header.js
wangi4myself/myFirstReactJs
import React from 'react'; import {Row, Col} from 'antd'; import { Menu, Icon, Tabs, message, Form, Input, Button, CheckBox, Modal } from 'antd'; const FormItem = Form.Item; const SubMenu = Menu.SubMenu; const TabPane = Tabs.TabPane; const MenuItemGroup = Menu.ItemGroup; import {Router, Route, Link, browserHis...
src/widgets/Switcher/PagiOptionSwitcher/ThreeColumn.js
mydearxym/mastani
import React from 'react' import { Wrapper, BarRow, Bar, } from '../styles/pagi_option_selector/three_column' const ThreeColumn = ({ active }) => { return ( <Wrapper> <BarRow> <Bar active={active} /> <Bar active={active} /> <Bar active={active} /> </BarRow> <BarRo...
js/components/userPage/index.js
CoulDracula/carrying
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Text, Button, Icon ,Card, CardItem} from 'native-base'; import { openDrawer } from '../../actions/drawer'; import styles from './...
client/components/AppBar.js
u-wave/hub
import React from 'react'; import Link from 'next/link'; import styled from '@emotion/styled'; import AppBar from '@mui/material/AppBar'; import Toolbar from '@mui/material/Toolbar'; import Button from '@mui/material/Button'; const LOGO_HEIGHT = 114; const LOGO_SQUARE_WIDTH = 104; const Logo = styled.a((props) => ({ ...
src/app/layouts/Special/index.js
nhardy/web-scaffold
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { debounce } from 'lodash-es'; import cx from 'classnames'; import { smoothScrollTo } from 'app/lib/scroll'; import throttle from 'app/lib/throttle'; import SiteHeader from 'app/components/SiteHeader'; import Drawer from 'app/componen...
web-app/src/base/components/ContentWrapper/index.js
crypticism/FF
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { addLeague as addLeagueAction, loadCookies as loadCookiesAction, retrieveScoringPeriodID as retrieveScoringPeriodIDAction, toggleAddLeagueModal as toggleAddLeagueModalAction, } from '../../actionCreators'; import { getAc...
test/render-input-component/AutowhateverApp.js
moroshko/react-autowhatever
import React, { Component } from 'react'; import Autowhatever from '../../src/Autowhatever'; import items from './items'; export const renderItem = item => item.text; export const renderInputComponent = props => ( <div> <input {...props} /> </div> ); export default class AutowhateverApp extends Component { ...
fields/components/CollapsedFieldLabel.js
helloworld3q3q/keystone
import React from 'react'; import { Button } from 'elemental'; // NOTE marginBottom of 1px stops things jumping around // TODO find out why this is necessary function CollapsedFieldLabel ({ style, ...props }) { const __style__ = { marginBottom: 1, paddingLeft: 0, paddingRight: 0, ...style, }; return ( <...
app/components/Profile.js
DMXL/dm-react-resume
import React from 'react'; import qrcodeUrl from "../assets/images/dmon_cv.png"; const Profile = props => { const profileData = props.data; return ( <div className="profile section"> <div className="title"> <h1><b>{profileData.name}</b> 的简历</h1> <small>{prof...
src/svg-icons/action/help.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHelp = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83...
examples/src/components/CustomOption.js
peterKaleta/react-select
import React from 'react'; import Gravatar from 'react-gravatar'; var Option = React.createClass({ propTypes: { addLabelText: React.PropTypes.string, className: React.PropTypes.string, mouseDown: React.PropTypes.func, mouseEnter: React.PropTypes.func, mouseLeave: React.PropTypes.func, option: React.PropTy...
app/components/footer/index.js
Joe3Ray/blog
import React from 'react' import styles from './index.less' export default class Footer extends React.PureComponent { render () { return ( <div className={styles['footer-wrapper']}> © 2016 - 2018 JoeRay61 京ICP备16027522号 </div> ) } }
src/components/GlobalModals/modals/AddStaffModal/AddStaffModal.js
TheModevShop/craft-app
import React from 'react'; import _ from 'lodash'; import AddStaff from 'components/AddStaff/AddStaff'; import {submitStaff} from 'store/staff'; import './add-staff-modal.less'; class AddStaffModal extends React.Component { constructor(...args) { super(...args); this.state = {}; } render() { const r...
DemoApp/lib/map-section/index.js
andyfen/react-native-UIKit
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, MapView, } from 'react-native'; const MapSection = ({region, annotations, height, fullHeight, ...props}) => ( <MapView {...props} style={[styles.map, {height: height, flex: fullHeight ? 1 : null}]} region={...
src/react-single-dropdown.js
sanoop-jose/react-single-dropdown
import React from 'react' import './style.css' class ReactSingleDropdown extends React.Component { constructor(props) { super(props) this.state = { selectedOption: null, isOptionsVisible: false } } onDropdownClick = () => { this.setState({ isOptionsVisible: !this.state.isOptionsVisib...
src/views/label-item.js
aaronmccall/labelr-workable
import React from 'react' import ampersandMixin from 'ampersand-react-mixin' export default React.createClass({ mixins: [ampersandMixin], displayName: 'Label', onToggleEditClick (event) { event.preventDefault() const {label} = this.props label.editing = !label.editing if (!label.editing) { ...
test/WelcomeScreen.spec.js
sljohnson32/networkr
import React from 'react'; import { shallow, mount, render, simulate } from 'enzyme'; import { assert, expect } from 'chai'; import WelcomeScreen from '../lib/components/WelcomeScreen' const sinon = require('sinon') describe('WelcomeScreen', ()=>{ it('renders as a div', ()=>{ const wrapper = shallow(<WelcomeScre...
examples/styling/jss/src/components/Profile/index.js
pure-ui/styleguide
import React, { Component } from 'react'; import useSheet from 'react-jss'; import jss from 'jss'; import extend from 'jss-extend'; // Setup jss plugins. jss.use(extend()); import styles from './styles'; import Button from '../Button'; class Profile extends Component { static propTypes = { avatarUrl: React.Pro...
tests/framework.spec.js
jeffaustin81/cropcompass-ui
import assert from 'assert' import React from 'react' import {mount, render, shallow} from 'enzyme' class Fixture extends React.Component { render () { return ( <div> <input id='checked' defaultChecked /> <input id='not' defaultChecked={false} /> </div> ) } } describe('(Framewo...
app/javascript/mastodon/features/ui/util/react_router_helpers.js
foozmeat/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Route } from 'react-router-dom'; import ColumnLoading from '../components/column_loading'; import BundleColumnError from '../components/bundle_column_error'; import BundleContainer from '../containers/bundle_container'; // Small wrapper t...
src/svg-icons/editor/merge-type.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMergeType = (props) => ( <SvgIcon {...props}> <path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/> </SvgIcon> ); EditorMergeType = pure(Editor...
admin/src/components/Popout.js
belafontestudio/keystone
import classnames from 'classnames'; import React from 'react'; import { Button, Checkbox, InputGroup, SegmentedControl } from 'elemental'; import Portal from './Portal'; const Transition = React.addons.CSSTransitionGroup; const sizes = { arrowHeight: 12 }; var Popout = React.createClass({ displayName: 'Popout', p...
client/app/scripts/components/metric-selector-item.js
kinvolk/scope
import React from 'react'; import classNames from 'classnames'; import { connect } from 'react-redux'; import { hoverMetric, pinMetric, unpinMetric } from '../actions/app-actions'; import { selectedMetricTypeSelector } from '../selectors/node-metric'; import { trackAnalyticsEvent } from '../utils/tracking-utils'; cl...
core/src/plugins/gui.ajax/res/js/ui/HOCs/size/providers.js
ChuckDaniels87/pydio-core
/* * Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io> * This file is part of Pydio. * * Pydio 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 License, o...
src/client/src/routes/Counter/components/Counter.js
aquibm/Research-Engine
import React from 'react' export const Counter = (props) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {props.counter}</h2> <button className='btn btn-default' onClick={props.increment}> Increment </button> {' '} <button className='btn btn-default' onClick={props.doubleAsync}> ...
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/airline-seat-individual-suite.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationAirlineSeatIndividualSuite = (props) => ( <SvgIcon {...props}> <path d="M7 13c1.65 0 3-1.35 3-3S8.65 7 7 7s-3 1.35-3 3 1.35 3 3 3zm12-6h-8v7H3V7H1v10h22v-6c0-2.21-1.79-4-4-4z"/> </SvgIcon> ); NotificationAirlineSeatIndividualSuit...
src/svg-icons/action/perm-identity.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermIdentity = (props) => ( <SvgIcon {...props}> <path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9...
app/components/Modal/ModalAdvancedEditImage.js
dvm4078/dvm-blog
import React from 'react'; import PropTypes from 'prop-types'; import { advancedChangeTitleImage, advancedChangeDescriptionImage, advancedChangeCaptionImage, advancedChangeAltTextImage } from '../../containers/PostEditor/actions'; export default class ModalAdvancedEditImage extends React.Component { static propTy...
src/components/topic/platforms/builder/Platform3ConfirmContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, FormattedHTMLMessage, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import { reduxForm } from 'redux-form'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import withIntlForm from '../../../commo...
examples/react-hot-loader-example/index.js
aulizko/redbox-react
import React from 'react' import App from './components/App' const root = document.getElementById('root') React.render(<App />, root)
js/components/checkbox/index.js
auto-flourish/ios
import React, { Component } from 'react'; import { Container, Header, Title, Content, Button, Icon, List, ListItem, CheckBox, Text, Left, Right, Body, } from 'native-base'; import styles from './styles'; class NHCheckbox extends Component { constructor(props) { super(props); this.state = { check...
app/js/components/ColorScale.js
raulalgo/scales-react
'use strict'; import React from 'react'; import ColorDisplay from './ColorDisplay' class ColorScale extends React.Component{ redScale; greenScale; blueScale; increment; steps; redArray; greenArray; blueArray; colorArray; componentsArray; constructor(props) { super(props); this.handle...
node_modules/react-bootstrap/es/ModalDialog.js
FoxMessenger/nyt-react
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 ...
app/app.js
eddiewang/tinderapp
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; // TODO constrain eslint import/no-unresolved rule to this block // Load the manifest.json file and the .htaccess file import 'file?name=[name].[ext]!./manifest.json'; // eslint-disable-lin...
src/svg-icons/device/airplanemode-inactive.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAirplanemodeInactive = (props) => ( <SvgIcon {...props}> <path d="M13 9V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5v3.68l7.83 7.83L21 16v-2l-8-5zM3 5.27l4.99 4.99L2 14v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L1...
docs-ui/components/chart-utilities.stories.js
mvaled/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {action} from '@storybook/addon-actions'; import {withInfo} from '@storybook/addon-info'; import {number, boolean, text} from '@storybook/addon-knobs'; import ChartZoom from 'app/components/charts/chartZoom'; import LineChart from 'app/compo...
src/components/react/original/ReactOriginal.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './ReactOriginal.svg' /** ReactOriginal */ function ReactOriginal({ width, height, className }) { return ( <SVGDeviconInline className={'ReactOriginal' + ' ' + class...
src/AppNavigation/AppNavigationComponent.spec.js
xp2017-hackergarden/app
import 'react-native'; import React from 'react'; import AppNavigationComponent from './AppNavigationComponent'; import {Store} from '../App/AppState'; import Constants from './AppNavigationConstants'; import {Provider} from 'react-redux'; import renderer from 'react-test-renderer'; describe('AppNavigationComponent', ...
docs/src/stories/HOCReadme.js
dowjones/react-dropdown-tree-select
import marked from 'marked' import React from 'react' import 'github-markdown-css/github-markdown.css' import './utils/prism' import HOCReadme from '../../HOC.md' export default class HOCStory extends React.Component { componentDidMount() { global.Prism && global.Prism.highlightAll() } render() { ret...
addons/themes/twenty/layouts/Blog.js
rendact/rendact
import $ from 'jquery' import React from 'react'; import gql from 'graphql-tag'; import {graphql} from 'react-apollo'; import moment from 'moment'; import {Link} from 'react-router'; import scrollToElement from 'scroll-to-element'; let Blog = React.createClass({ componentDidMount(){ require('../assets/css/main.c...
src/svg-icons/action/favorite-border.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFavoriteBorder = (props) => ( <SvgIcon {...props}> <path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 2...
web/static/js/components/butter.js
toxu/txportal
import React from 'react'; import {connect} from 'react-redux'; import { fetchButterResults, fetchButterProjects, butterTabSelected } from '../actions/butter'; // UI import Tabs from 'react-bootstrap/lib/Tabs'; import Tab from 'react-bootstrap/lib/Tab'; import ButterResultList from './butter_result_list'; class Butte...
fields/types/datetime/DatetimeField.js
andrewlinfoot/keystone
import DateInput from '../../components/DateInput'; import Field from '../Field'; import moment from 'moment'; import React from 'react'; import { Button, FormField, FormInput, FormNote, InlineGroup as Group, InlineGroupSection as Section, } from '../../../admin/client/App/elemental'; module.exports = Field.crea...
src/modules/getCaptcha/index.js
zcfreestyle/moment-react
/** * Created by XiaoTong on 2017/9/1. */ import React from 'react' import ReactDOM from 'react-dom' import App from './App' import '../../assets/styles/read.styl' import '../../assets/styles/Footer.styl' ReactDOM.render( <App />, document.getElementById('root') )