path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
20161201/RN-test/app/js/pages/pagetow.js
fengnovo/react-native
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, TextInput, Image, View,ScrollView, ListView, TouchableHighlight, } from 'react-native'; // class Pagetow extends Component { // // 初始化模拟数据 // constructor(props) { // super(props); // const ds = new ListView.D...
src/js/components/ui-toolkit/WidgetPlayerTop/WidgetPlayerTop.js
soundchain/soundchain-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from './WidgetPlayerTop.scss'; export default class WidgetPlayerTop extends Component { static propTypes = { }; static defaultProps = { }; render() { return ( <div>WidgetPlayerTop</div> ); } }
docs/app/Examples/addons/Radio/States/Checked.js
jcarbo/stardust
import React from 'react' import { Radio } from 'stardust' const RadioCheckedExample = () => ( <Radio label='This radio comes prechecked' defaultChecked /> ) export default RadioCheckedExample
src/components/WelcomeHeader.js
hansenjl/circuit-builder-client
import React from 'react'; import NavBar from '../components/NavBar'; const WelcomeHeader = () => ( <div> <header className="App-header"> <h1 className="App-title">Welcome to Circuit Builder</h1> </header> <NavBar /> </div> ) export default WelcomeHeader;
shared/components/asyncVendorScripts.component.js
Mr-Antivirus/Riur
/** * Copyright 2016-present, Dennis Norton. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @providesModule asyncVendorScripts.component */ 'use strict' import React, { Component } from 'react'; export d...
docs/src/pages/components/icons/FontAwesome.js
lgollut/material-ui
import React from 'react'; import { loadCSS } from 'fg-loadcss'; import { makeStyles } from '@material-ui/core/styles'; import { green } from '@material-ui/core/colors'; import Icon from '@material-ui/core/Icon'; const useStyles = makeStyles((theme) => ({ root: { '& > .fa': { margin: theme.spacing(2), ...
src/ItemsCarousel/withPlaceholderMode.js
bitriddler/react-items-carousel
import React from 'react'; export default () => (Cpmt) => { return class WithPlaceholderMode extends React.Component { constructor(props) { super(props); this.state = { isPlaceholderMode: this.props.enablePlaceholder && React.Children.count(this.props.children) === 0, }; } comp...
frontend/src/components/GoogleMapComponent.js
mayk93/OpenWeatherApp
/** * Created by michael on 26/10/2017. */ /* React */ import React from 'react'; import { withScriptjs, withGoogleMap, GoogleMap, Marker } from "react-google-maps" let base = "https://maps.googleapis.com/maps/api/js"; let url = `${base}?key=${process.env.REACT_APP_GOOGLE_PLACES_KEY}&v=3.exp&libraries=geometry,dra...
src/routes/login/index.js
nicolascine/site
/** * 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...
frontend/src/js/index.js
melbourne2991/node-react-babel-stack
import '../sass/app.scss'; import 'babel/polyfill'; import React from 'react'; class TestComponent extends React.Component { render() { return( <h1>Hello World!</h1> ) } } React.render(<TestComponent/>, document.querySelector('body'));
app/components/ui/About.js
sarahland/giveaway
import React from 'react'; const About = () => ( <div className="about"> <h1>Welcome to Give Away</h1> <p> Have an item that you no longer need or it's just taking up space? If you like an item, contact the "Owner" to pick it up. </p> </div> ) export default About
examples/huge-apps/routes/Calendar/components/Calendar.js
samidarko/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> ...
app/containers/Contacts/AddContactButton/index.js
Get-In-Touch/get-in-touch
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import styles from './styles.css'; import { Button, Modal, Glyphicon } from 'react-bootstrap'; import AddEditContactForm from '../AddEditContactForm'; import { requestAddContact } from './actions'; export clas...
src/browser/intl/IntlPage.js
skallet/este
// @flow import React from 'react'; import SwitchLocale from './SwitchLocale'; import linksMessages from '../../common/app/linksMessages'; import { FormattedDate, FormattedMessage, FormattedNumber, FormattedRelative, defineMessages, } from 'react-intl'; import { Box, PageHeader, Paragraph, Title, } fr...
src/components/SearchObject.js
samkarp/murmuration
import React from 'react'; import Select from 'react-select'; class SearchObject extends React.Component { constructor(props) { super(props); this.state = { type: this.props.type, options: [], value: [] }; this.handleSelectChange = this.handleSelectChange.bind(this); } hand...
src/components/common/PageBody.js
great-design-and-systems/cataloguing-app
import PropTypes from 'prop-types'; import React from 'react'; export const PageBody = ({ children }) => { return (<div className="page-body">{children}</div>); }; PageBody.propTypes = { children: PropTypes.object.isRequired };
app/javascript/mastodon/containers/domain_container.js
kirakiratter/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { blockDomain, unblockDomain } from '../actions/domain_blocks'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Domain from '../components/domain'; import { openModal } from '../actions/modal'; const messages = d...
docs-ui/components/loadingIndicator.stories.js
ifduyue/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; // import {action} from '@storybook/addon-actions'; import {withInfo} from '@storybook/addon-info'; import LoadingIndicator from 'app/components/loadingIndicator'; storiesOf('LoadingIndicator', module) .add( 'all', withInfo('Loading indi...
src/components/footer.js
olofd/react-native-insta-photo-studio
import {View, Text, StyleSheet, PixelRatio, TouchableOpacity} from 'react-native'; import React, { Component } from 'react'; import Icon from 'react-native-vector-icons/Ionicons'; import I18n from 'react-native-i18n'; export default class PhotoManagerHeader extends Component { static defaultProps = { styles : S...
example/v9.x.x/react-icu/src/App.js
i18next/react-i18next
import React, { Component } from 'react'; import { withNamespaces, Trans } from 'react-i18next'; import logo from './logo.svg'; import './App.css'; import ComponentUsingMacro from './ComponentUsingMacro'; class App extends Component { render() { const { t, i18n } = this.props; const changeLanguage = lng =>...
src/pages/conference/info/coOrganizer/index.js
sunway-official/acm-admin
import React, { Component } from 'react'; import ReactTable from 'react-table'; import 'react-table/react-table.css'; import { RaisedButton, Dialog } from 'material-ui'; import { withRouter } from 'react-router'; import { queries, mutations } from '../helpers'; import { graphql, compose } from 'react-apollo'; import { ...
packages/material-ui/src/Modal/Modal.js
cherniavskii/material-ui
// @inheritedComponent Portal import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { polyfill } from 'react-lifecycles-compat'; import warning from 'warning'; import keycode from 'keycode'; import activeElement from 'dom-helpers/ac...
src/client/components/FormRowComponent.js
aaronpanch/hercules
import React from 'react'; import classNames from 'classnames'; require('../styles/form-row.scss'); require('../styles/grid.scss'); class FormRow extends React.Component { constructor(props) { super(props); this.state = { isActive: false } } render() { let {children, hint, error} = this....
examples/async/containers/Root.js
kwangkim/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import configureStore from '../store/configureStore'; import AsyncApp from './AsyncApp'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> {() ...
itemField/foreignKey.js
KAESapps/ks-admin
import React from 'react' const el = React.createElement import { observer } from 'mobservable-react' import {get} from 'lodash' import asText from './text' export default function (arg) { var relatedCollection = arg.collection var labelField = arg.labelField || arg.path // TODO: deprecate use of 'labelField' r...
website/src/templates/universe.js
explosion/spaCy
import React from 'react' import PropTypes from 'prop-types' import { StaticQuery, graphql } from 'gatsby' import Card from '../components/card' import Link from '../components/link' import Title from '../components/title' import Grid from '../components/grid' import Button from '../components/button' import Icon from...
stories/NumericMenu.stories.js
algolia/react-instantsearch
import React from 'react'; import { storiesOf } from '@storybook/react'; import { NumericMenu, Panel, Configure } from 'react-instantsearch-dom'; import { WrapWithHits } from './util'; const stories = storiesOf('NumericMenu', module); stories .add('default', () => ( <WrapWithHits linkedStoryGroup="NumericMenu.s...
public/src/main.js
scott1702/silverstripe-assets-gallery
import $ from 'jquery'; import React from 'react'; import GalleryComponent from './component/gallery-component'; import FileBackend from './backend/file-backend'; function getVar(name) { var parts = window.location.href.split('?'); if (parts.length > 1) { parts = parts[1].split('#'); } let variables = parts[0]...
app/javascript/mastodon/features/followers/index.js
koba-lab/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import LoadingIndicator from '../../components/loading...
packages/mineral-ui-icons/src/IconMenu.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconMenu(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}> ...
src/svg-icons/image/crop-16-9.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCrop169 = (props) => ( <SvgIcon {...props}> <path d="M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"/> </SvgIcon> ); ImageCrop169 = pure(ImageCrop169); ImageCr...
src/components/App/index.js
albertfdp/battleship
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as BoardActions from 'actions/BoardActions'; import EndGameModal from '../EndGameModal'; import Board from '../...
examples/counter/containers/App.js
chrisege/redux
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createRedux } from 'redux'; import { Provider } from 'redux/react'; import * as stores from '../stores'; const redux = createRedux(stores); export default class App extends Component { render() { return ( <Provider r...
front-react/src/components/map/DetailsPopup.js
hexacta/maprop
import React from 'react'; import PropTypes from 'prop-types'; import Operations from './../../constants/Operations'; import { LOCALE } from './../../constants/Config'; import './DetailsPopup.css'; const X_OFFSET = 50; const Y_OFFSET = -20; const formatValue = (polygonData, operationType) => { if(!polygonData){ re...
src/containers/Consultas/consultaPrevisaoMensalForm.js
MarceloProjetos/react-node-red
import React, { Component } from 'react'; import { OverlayTrigger, Button, Glyphicon, Panel, Col, Row, Grid, FormGroup, FormControl, Table, Checkbox, Tooltip, } from 'react-bootstrap'; import DatePicker from 'react-bootstrap-date-picker'; import uuid from 'node-uuid'; import { assign, ...
src/modules/Listen/components/Wrapper.js
prjctrft/mantenuto
import React from 'react'; import PropTypes from 'prop-types'; // TODO - extract this component to be used // across app const Wrapper = (props) => { const styles = require('./Wrapper.scss'); return ( <div className={styles.Wrapper}> { props.children } </div> ) } Wrapper.propTypes = { children:...
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js
Jaeandroid/actor-platform
import React from 'react'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import CreateGroupStore from 'stores/CreateGroupStore'; import CreateGroupForm from './create-group/Form.react'; import Modal from 'react-modal'; import { KeyCodes } from 'constants/ActorAppConstants'; const appEl...
app/components/Crispr.js
Sanket-224/CRISPR-and-HIV
import React, { Component } from 'react'; import ReactDom from 'react-dom'; // import s from '../assets/mystyles.css'; class Crispr extends Component { render() { return ( <div> <div className="row"> <div className="col s1"> </div> ...
smart-css/button.js
kwangkim/css-in-js
import React from 'react'; import SmartCSS from 'smart-css'; let css = new SmartCSS(); css.setClass('.container', { textAlign: 'center' }); css.setClass('.button', { backgroundColor: '#ff0000', width: '320px', padding: '20px', borderRadius: '5px', border: 'none', outline: 'none' }); css.setClass('.but...
components/02_redux/src/pure_components/Input.js
babotech/reusable-components-check
import React from 'react' const Input = ({ className, id, onChange, type, value }) => <input className={className} onChange={onChange} type={type} value={value} /> export default Input
generators/app/templates/js/index.js
v-technologies/generator-react-boilerplate-vtech
import React from 'react'; import {render} from 'react-dom'; import {Provider} from 'react-redux'; import {IntlProvider, addLocaleData} from 'react-intl'; import en from 'react-intl/locale-data/en'; import routes from './routes'; import store from './store'; import messages from './messages/en'; /** * Registers the...
app/completion.js
paulsonnentag/qwery-me
import React from 'react'; import wikiData from './wiki-data'; import CompletionList from './completion-list'; export default class Completion extends React.Component { constructor () { super(); this._keyMap = { // Esc: this.props. Up: this.decSelected.bind(this), Down: this.incSelect...
src/index.js
orbitdb/orbit-web
'use strict' import React from 'react' import { render } from 'react-dom' import { version } from '../package.json' import redirectToHttps from './utils/https' import { BigSpinner } from './components/Spinner' import './styles/normalize.css' import './styles/Fonts.scss' import './styles/Main.scss' import './styles...
app/javascript/mastodon/components/modal_root.js
yi0713/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import 'wicg-inert'; import { createBrowserHistory } from 'history'; import { multiply } from 'color-blend'; export default class ModalRoot extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { ...
src/index.js
PunxNotDead/takemybook-frontend
import React from 'react'; import ReactDOM from 'react-dom'; // AppContainer is a necessary wrapper component for HMR import { AppContainer } from 'react-hot-loader'; // Injecting Bootstrap into application import 'bootstrap-webpack!../bootstrap.config.js'; import '!style-loader!css-loader!less-loader!./less/index.le...
src/index.js
ehguo/postknight
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import store from 'redux/store'; import App from 'components/App'; render(( <Provider store={store}> <App /> </Provider> ), document.getElementById('root'));
test/WindowedListRenderer.js
planttheidea/react-windowed-list
// test import test from 'ava'; import {mount, shallow} from 'enzyme'; import toJson from 'enzyme-to-json'; import React from 'react'; // src import * as component from 'src/WindowedListRenderer'; import * as constants from 'src/constants'; const WindowedListRenderer = component.WindowedListRenderer; test('if Window...
src/svg-icons/device/signal-wifi-3-bar.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi3Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.0...
src/svg-icons/action/settings-power.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsPower = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-...
src/shared/components/boardCard/boardCard.js
OperationCode/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import styles from './boardCard.css'; const BoardCard = ({ name, role, src, description }) => ( <div className={styles.boardCard}> <img src={src} alt={`Headshot of ${name}`} /> <h6 className={styles.name}>{name}</h6> <i className={styles.role...
src/game.js
sdecandelario/tic-tac-toe
import React from 'react'; import {Board} from "./board"; import {Status} from "./status"; class Game extends React.Component { constructor() { super(); this.state = { history: [{ squares: new Array(9).fill(null), }], stepNumber: 0, ga...
packages/es-components/src/components/controls/buttons/OutlineButton.js
TWExchangeSolutions/es-components
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import tinycolor from 'tinycolor2'; import ButtonBase from './ButtonBase'; import { useTheme } from '../../util/useTheme'; const StyledButton = styled(ButtonBase)` background-color: ${props => props.colors.bgColor}...
tech_stack/src/components/common/Card.js
dunkvalio/ReactNative
import React from 'react'; import { View } from 'react-native'; const Card = (props) => ( <View style={styles.containerStyle}> {props.children} </View> ); const styles = { containerStyle: { borderWidth: 1, borderRadius: 2, borderColor: '#ddd', borderBottomWidth: 0, shadowColor: '#000', ...
modules/react-basic-layout/src/components/Container.js
socialtables/react-color
'use strict'; import React from 'react'; import ReactCSS from 'reactcss'; class Container extends ReactCSS.Component { classes() { return { 'default': { container: { maxWidth: this.props.width + 'px', padding: '0 20px', margin: '0 auto', }, }, }; ...
src/svg-icons/image/crop-square.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropSquare = (props) => ( <SvgIcon {...props}> <path d="M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"/> </SvgIcon> ); ImageCropSquare = pure(ImageCropSquar...
src/pwa.js
leopoldjoy/react-ethereum-dapp-example
import React from 'react'; import ReactDOM from 'react-dom/server'; import Html from './helpers/Html'; export default function () { return `<!doctype html>${ReactDOM.renderToStaticMarkup(<Html />)}`; }
docs/src/sections/BadgeSection.js
SSLcom/Bootsharp
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function BadgeSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <Anc...
src/rates/index.js
antoinejaussoin/mobx-fx
import React, { Component } from 'react'; import { observer, inject } from 'mobx-react'; import store from './store'; import ExchangeRate from './components/ExchangeRate'; import CurrencyDropdown from './components/CurrencyDropdown'; import styles from './index.css'; @inject(() => ({ store })) @observer class RateInde...
server/middlewares/ssr.dev.js
vinks/redux-ultimate-ssr
import React from 'react' import { renderToString, renderToStaticMarkup } from 'react-dom/server' import { StaticRouter } from 'react-router-dom' import { matchRoutes } from 'react-router-config' import { Provider } from 'react-redux' import routes from '../../client/routes' import Html from '../markup/Html' import { s...
src/index.js
sih4sing5hong5/environment_education
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import 電視 from './電視/電視'; import './App/App.css'; import Debug from 'debug'; Debug.enable('lo5ik8:*'); const root = document.getElementById('app'); let history = browserHistory; re...
test/regressions/tests/List/SecondaryActionCheckboxListItem.js
dsslimshaddy/material-ui
// @flow import React from 'react'; import { ListItem, ListItemText, ListItemSecondaryAction } from 'material-ui/List'; import Checkbox from 'material-ui/Checkbox'; export default function SecondaryActionCheckboxListItem() { return ( <div style={{ background: '#fff', width: 300 }}> <ListItem button> ...
app/stem/components/FormHeader.js
Jawnkuin/electron-618-im
import React from 'react'; import { Icon } from 'antd'; import styles from './FormHeader.less'; import { closeCurrentWindow, minimizeCurrentWindow } from '../../share/rendererWindow'; const FormHeader = () => ( <div className={styles.headerContainer}> <div className={styles.title}> <img src="../resources/i...
app/components/UGFooterSitemap/UGFooterULDefault.js
perry-ugroop/ugroop-react-dup2
/** * Created by Ber on 03/12/16. */ import React from 'react'; const UGFooterULDefault = (props) => <ul className={`normal-link-list ${props.className}`}> {props.children} </ul>; UGFooterULDefault.propTypes = { className: React.PropTypes.any, children: React.PropTypes.any, }; export default UGFooterULDefaul...
Libraries/Modal/Modal.js
cosmith/react-native
/** * 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. * * @provides...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
arthurchan1111/EventPlanner
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/components/Paragraph/Paragraph.js
wundery/wundery-ui-react
import React from 'react'; // Utils import classnames from 'classnames'; const Paragraph = () => ( <div className={classnames('ui-paragraph')}> Hello World </div> ); Paragraph.propTypes = { }; Paragraph.defaultProps = { }; export default Paragraph;
src/main.js
ksevezich/DayOfBlueprint
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory } from 'react-router' import { syncHistoryWithStore, push } from 'react-router-redux' import createStore from './store/createStore' import AppContainer from './contain...
components/admin/scorecontrol/NewSetButton.js
nvbf/pepper
import React from 'react'; import styled from 'styled-components'; import { gql, graphql } from 'react-apollo'; import color from '../../../libs/color'; const Container = styled.div` width: 100%; height: 64px; background-color: white; display: flex; align-items: center; justify-content: center; `; const B...
src/ButtonMini/index.js
christianalfoni/ducky-components
import Icon from '../Icon'; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; function ButtonMini(props) { return ( <button className={classNames(styles.wrapper, { [styles.largerMini]: props.large, [styles....
src/modules/Components/Views/ShowcasePanel.js
rtellez700/MESA_Connect_2.0
import React, { Component } from 'react'; import faker from 'faker'; import ProfileAvatar from '../User/ProfileAvatar'; class ShowcasePanel extends Component { _renderFigure(){ return( <div className="Media__figure"> <ProfileAvatar name="Rodrigo Tellez" className="CENTER-NOW"/> </div> ...
modules/dreamview/frontend/src/components/Header/index.js
ycool/apollo
import React from 'react'; import Image from 'components/common/Image'; import logoApollo from 'assets/images/logo_apollo.png'; import HMIControls from 'components/Header/HMIControls'; export default class Header extends React.Component { render() { return ( <header className="header"> ...
src/components/SettingsPage.js
telpalbrox/EliteTime
import React, { Component } from 'react'; import TorrentActions from '../actions/TorrentActions'; export default class SettingsPage extends Component { constructor() { super(); let provider = window.localStorage.getItem('provider'); if(!provider) { provider = 'EliteTorrent'; window.localStorage.setItem('...
src/layouts/CoreLayout/CoreLayout.js
ReuvenLiran/react-musicplayer
import React from 'react' import Header from '../../components/Header' import './CoreLayout.scss' import '../../styles/core.scss' export const CoreLayout = ({ children }) => ( <div className='container text-center'> <Header /> <div className='core-layout__viewport'> {children} </div> </div> ) Co...
src/components/Auth/ForgotPassword/ForgotPassword.react.js
DeveloperAlfa/chat.susi.ai
import React, { Component } from 'react'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import Dialog from 'material-ui/Dialog'; import './ForgotPassword.css'; import $ from 'jquery'; import PropTypes from 'prop-types'; import ...
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/devportal/source/Tests/setupTests.js
chamindias/carbon-apimgt
/* * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
examples/simple/components/Fetch.js
dlmr/react-router-redial
import React, { Component } from 'react'; import { provideHooks } from 'redial'; @provideHooks({ fetch: ({ setProps, getProps }) => new Promise((resolve) => { const { color } = getProps(); if(!color) { if (typeof window === 'object') { throw new Error('Fetch: Demo error on client side only'); ...
src/component/Header.js
evanram/evan-dot-coffee
import React, { Component } from 'react'; import './Header.css'; class Header extends Component { render() { return ( <div className='Header'> <h1>You need coffee.</h1> <h2>("yeah, i guess i do")</h2> </div> ); } } export default Header;
src/containers/ChatContainer.js
zzelune/neam
import React, { Component } from 'react'; import { Root, StyleSheet, View, Text, Image, Dimensions, Button, PixelRatio, FlatList, TouchableHighlight } from 'react-native'; import SideBar from '../components/SideBar'; import { Header, Left, Body, Right } from 'native-base'; import Icon from 'react-na...
src/svg-icons/action/hourglass-full.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHourglassFull = (props) => ( <SvgIcon {...props}> <path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z"/> </SvgIcon> ); ActionHourglassFull = pure(ActionHour...
src/svg-icons/action/http.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHttp = (props) => ( <SvgIcon {...props}> <path d="M4.5 11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5v2zm2.5-.5h1.5V15H10v-4.5h1.5V9H7v1.5zm5.5 0H14V15h1.5v-4.5H17V9h-4.5v1.5zm9-1.5H18v6h1.5v-2h2c.8 0 1.5-.7 1.5-1.5v-...
lib/utils/plugins.js
bekher/hyperterm
import { remote } from 'electron'; import { connect as reduxConnect } from 'react-redux'; // we expose these two deps to component decorators import React from 'react'; import Notification from '../components/notification'; import notify from './notify'; // remote interface to `../plugins` let plugins = remote.requir...
js/components/inputgroup/regular.js
YeisonGomez/RNAmanda
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Icon, Text, Body, Left, Right, Input, Item } from 'native-base'; import { Actions } from 'react-native-router-flux'; imp...
dist/internal/components/session/SessionDropzone.js
Caleydo/ordino
import React from 'react'; import Dropzone from 'react-dropzone'; import { GraphContext } from '../../constants'; export function SessionDropzone() { const { manager } = React.useContext(GraphContext); const onDrop = (acceptedFile) => { const reader = new FileReader(); reader.onload = (e) => { ...
src/interface/others/SmallStatisticBox.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { TooltipElement } from 'common/Tooltip'; import './StatisticBox.css'; import STATISTIC_CATEGORY from './STATISTIC_CATEGORY'; export { default as STATISTIC_ORDER } from './STATISTIC_ORDER'; export { default as STATISTIC_CATEGORY } from './STATISTI...
app/javascript/mastodon/features/notifications/components/column_settings.js
NS-Kazuki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ClearColumnButton from './clear_column_button'; import SettingToggle from './setting_toggle'; export default class ColumnSettings extends Reac...
src/svg-icons/av/fiber-new.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFiberNew = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zM8.5 15H7.3l-2.55-3.5V15H3.5V9h1.25l2.5 3.5V9H8.5v6zm5-4.74H11v...
src/svg-icons/communication/call-split.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallSplit = (props) => ( <SvgIcon {...props}> <path d="M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"/> </SvgIcon> ); CommunicationCallS...
web/src/components/Icons/CreditCard.js
dnote-io/cli
/* Copyright (C) 2019, 2020 Monomax Software Pty Ltd * * This file is part of Dnote. * * Dnote 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, or * (at your optio...
src/client/todos/newtodo.react.js
masterfung/react-immutable-flux-login
import PureComponent from '../components/purecomponent.react'; import React from 'react'; import immutable from 'immutable'; import {addTodo, onNewTodoFieldChange} from './actions'; import {msg} from '../intl/store'; export default class NewTodo extends PureComponent { addTodoOnEnter(e) { if (e.key === 'Enter')...
src/search/search.js
ricsv/react-leonardo-ui
import React, { Component } from 'react'; import { luiClassName } from '../util'; class Search extends Component { constructor(props) { super(props); this.focus = this.focus.bind(this); this.onClearClick = this.onClearClick.bind(this); } onClearClick(e) { e.preventDefault(); if (typeof this...
node_modules/react-icons/md/looks-6.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdLooks6 = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m25 15v-3.4h-6.6c-1.8 0-3.4 1.5-3.4 3.4v10c0 1.9 1.6 3.4 3.4 3.4h3.2c1.8 0 3.4-1.5 3.4-3.4v-3.4c0-1.8-1.6-3.2-3.4-3.2h-3.2v-3.4h6.6z m6.6-10c1.8 0 3.4 1.6 3.4 3.4v23.2...
src/components/Svg/Ellipse.js
weaintplastic/react-sketchapp
import React from 'react'; import { pathProps, numberProp } from './props'; module.exports = class Ellipse extends React.Component { static propTypes = { ...pathProps, cx: numberProp.isRequired, cy: numberProp.isRequired, rx: numberProp.isRequired, ry: numberProp.isRequired, }; static defaul...
app/pages/Explorer/index.js
aleksandrenko/apollo-cc
import './style.less'; import 'ag-grid-root/dist/styles/ag-grid.css'; import 'ag-grid-root/dist/styles/theme-fresh.css'; import React from 'react'; import {AgGridReact} from 'ag-grid-react'; import {Tabs, Tab} from 'react-draggable-tab'; var gridOptions = { columnDefs: [ { headerName: 'Country', field: 'count...
RNTest/AwesomeProject/index.android.js
Tony0822/ReactNativeDemo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class AwesomeProject extends Component { render() { return ( <View style={styles.cont...
app/components/shelf/index.js
ZhengRaymond/portfolio
import styled from 'styled-components'; import _ from 'lodash'; import React from 'react'; import { fadein2 } from 'styles/animations'; import GithubIcon from 'react-icons/lib/fa/github'; import LinkedInIcon from 'react-icons/lib/fa/linkedin'; import PhoneIcon from 'react-icons/lib/fa/phone'; import EmailIcon from 'rea...
reflux-app/components/Flow.js
Orientsoft/conalog-front
import React from 'react' import _ from 'lodash' import AppActions from '../actions/AppActions' import AppStore from '../stores/AppStore' class Flow extends React.Component { constructor(props) { super(props) this.state = { } } componentDidMount() { this.unsubscribe = AppStore.listen(functio...
src/issues/IssueCard.js
opensourcery-io/app
import React from 'react'; import { Button, Card, Image } from 'semantic-ui-react' import { Header } from 'semantic-ui-react' import { Icon, Label } from 'semantic-ui-react' const IssueCard = ({ img, owner, name, description, stars, language }) => ( <Card style={{ minWidth: '400px' }}> <Card.Content style={{ ...
app/javascript/legacy/member-facing/backbone/action_form.js
SumOfUs/Champaign
import $ from 'jquery'; import I18n from 'champaign-i18n'; import React from 'react'; import { render } from 'react-dom'; import _ from 'lodash'; import Backbone from 'backbone'; import ee from '../../../shared/pub_sub'; import ErrorDisplay from '../../../shared/show_errors'; import MobileCheck from './mobile_check'; i...
docs/app/Examples/elements/Loader/Types/index.js
jcarbo/stardust
import React from 'react' import { Message } from 'stardust' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const Types = () => ( <ExampleSection title='Types'> <ComponentExample title='Loader' ...
packages/site/demo/index.js
ZhonganTechENG/zarm
import 'core-js/es'; import React from 'react'; import ReactDOM from 'react-dom'; import { HashRouter } from 'react-router-dom'; import App from './components/App'; ReactDOM.render( <HashRouter> <App /> </HashRouter>, document.getElementById('app'), );