path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
Realization/frontend/czechidm-core/src/components/advanced/ModalProgressBar/ModalProgressBar.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; // import * as Basic from '../../basic'; import ProgressBar from '../ProgressBar/ProgressBar'; /** * Progressbar in modal window. * * @author Radek Tomiška */ export default function ModalProgressBar(props) { const { rendered, showLoading, show, coun...
packages/reactor-tests/src/tests/SenchaTestHooks.js
markbrocato/extjs-reactor
import React from 'react'; import { Button } from '@extjs/ext-react'; export default function SenchaTestHooks() { return <Button text="Target" itemId="target"/> }
src/index.js
tolylya/octoberry
/* eslint-disable import/default */ import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { AppContainer } from 'react-hot-loader'; import Root from './components/Root'; import configureStore from './store/configureStore'; require('./favicon.ico'); // Tel...
src/main/js/my-app/src/components/NotFound.js
myapos/ClientManagerSpringBoot
import React from 'react'; const NotFound = () => <div> The page that you requested has not found </div>; NotFound.contextTypes = { router: React.PropTypes.object.isRequired, }; export default NotFound;
src/index.js
Maachi/Admin-FrontEnd
import React from 'react'; import { Router, Route, browserHistory } from 'react-router'; import { render } from 'react-dom'; import Login from './pages/Login'; import Dashboard from './pages/Dashboard'; import CreateProcess from './pages/CreateProcess'; import './static/sass/main.scss'; render(( <Router history={bro...
imports/ui/components/form/remove-giveaway-dialog.js
irvinlim/free4all
import React from 'react'; import ConfirmDialog from '../../layouts/confirm-dialog'; const RemoveGiveawayDialog = (props) => ( <ConfirmDialog title="Are you sure?" {...props}> Are you sure you would like to remove this giveaway? </ConfirmDialog> ); export default RemoveGiveawayDialog;
AirFront/point/profile.js
sunshinezxf/Airburg
import React from 'react'; import { NavBar, Button, List, WhiteSpace, WingBlank, InputItem, Toast, } from 'antd-mobile'; const Item = List.Item; var profile = {id: '', name: '', phone: '', point: '123'}; export const PointCenter = React.createClass({ getDefaultProps(){ return {p...
src/containers/NotFound/NotFound.js
martinrp/reduxgitresume
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
src/components/Statement.js
lukebelliveau/aclu-matchers
import React from 'react'; import { StyleSheet, css } from 'aphrodite'; const styles = StyleSheet.create({ wrapperStyle: { padding: '50px', paddingTop: 0, '@media (max-width: 740px)': { padding: '0px', } }, body: { borderBottom: '2px solid #eee', borderTop: '2px solid #eee', pa...
example/superchatExample/App.js
super-chat/react-native-superchat
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { Chat } from 'react-native-superchat'; import messages from './data/messages' import { Platform, StyleSheet, Text, View } from 'react-native'; export default class App exte...
pkg/interface/chat/src/js/components/lib/welcome.js
jfranklin9000/urbit
import React, { Component } from 'react'; export class Welcome extends Component { constructor() { super(); this.state = { show: true } this.disableWelcome = this.disableWelcome.bind(this); } disableWelcome() { this.setState({ show: false }); localStorage.setItem("urbit-chat:wasWe...
www/containers/BlogsPage.js
DremyGit/dremy-blog
import React from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import BlogItem from '../components/BlogPanel/BlogItem'; import BlogListTitle from '../components/BlogPanel/BlogListTitle'; import Pager from '../components/Pager/Pager'; import config from '../config'; import { fetch...
05_ES6/Code/fork-es6/app/components/StorePane.js
joacoleonelli/react-zerotohero
import React from 'react'; import Store from './Store'; import autoBind from 'react-autobind'; class StorePane extends React.Component { constructor(props) { super(props); autoBind(this); } renderStore(store){ return <Store key={store} index={store} details={this.props.stores[store]} />; } ...
src/GoalInfoNavigation/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import Wrapper from '../Wrapper'; import Typography from '../Typography'; import IconAvaWrapper from '../IconAvaWrapper'; import styles from './styles.css'; function GoalInfoNavigation(props) { return ( <Wrapper className={styles.ou...
app/components/PreSplash/PreSplash.js
heptaman/Voluncheering
import React, { Component } from 'react'; import PropTypes from 'prop-types' import { View, Text, StyleSheet, TouchableOpacity, Animated } from 'react-native' import { connect } from 'react-redux' import { colors, fontSizes } from '~/styles' import { logout } from '~/actions/auth' class PreSplash extends Component {...
electronApp/node_modules/react-element-to-jsx-string/AnonymousStatelessComponent.js
eyang414/superFriend
import React from 'react'; export default function(props) { let {children} = props; // eslint-disable-line react/prop-types return <div>{children}</div>; }
docs/app/Examples/modules/Modal/Types/index.js
mohammed88/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import { Message } from 'semantic-ui-react' const ModalExamples = () => ( <ExampleSection title='Types'> <ComponentExample ...
packages/material-ui-icons/src/SpeakerNotes.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-3h-8V6h8v2z" /></g> , 'SpeakerNotes');
website/core/WebPlayer.js
skevy/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...
client-web/client-web/src/components/ListViewProperty.js
ppsari/final
import React from 'react' import { Link } from 'react-router-dom' import axios from 'axios' import prettyMoney from '../helpers/prettyMoney' const api = 'https://api.room360.ga/api' class ListViewProperty extends React.Component { constructor(props){ super(props) this.state={ properties:[] } } ...
app/components/map-canvas.js
laynemcnish/walksafely-react
import React from 'react'; import PureComponent from 'react-pure-render/component'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { ActionCreators } from '../actions'; const { initMap } = ActionCreators; export class MapCanvas extends PureComponent { constructor(props)...
old_examples/dyno/app.js
mzabriskie/react-tabs
import React from 'react'; import { render } from 'react-dom'; import Modal from 'react-modal'; import { Tab, Tabs, TabList, TabPanel } from '../../src/index'; import '../../style/react-tabs.css'; Modal.setAppElement(document.getElementById('example')); class App extends React.Component { constructor(props) { s...
app/assets/scripts/main.js
thadk/oc-map
'use strict'; import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import MapWidget from './views/map-widget'; import TableWidget from './views/table-widget'; window.OC_MAP = { initMapWidget: containerEl => { render(( <MapWidget /> ), containerEl); }, initTableW...
js/components/ClinicTab.js
tausifmuzaffar/bisApp
import React, { Component } from 'react'; import { connect } from 'react-redux'; var moment = require('moment'); import { actions } from 'react-native-navigation-redux-helpers'; import { Image, WebView, AsyncStorage, Linking } from 'react-native'; import { Container, Header, Subtitle, Title, Content, H2, Button, Foote...
packages/bonde-admin-canary/src/scenes/Auth/scenes/ResetPassword/InvalidToken.spec.js
ourcities/rebu-client
import test from 'ava' import React from 'react' import { shallow } from 'enzyme' import { Trans } from 'react-i18next' import { Title } from 'bonde-styleguide' import Link, { ButtonLink } from 'components/Link' import InvalidToken from './InvalidToken' test.beforeEach(t => { const i18n = key => key t.context.nod...
fields/types/location/LocationColumn.js
pr1ntr/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; const SUB_FIELDS = ['street1', 'suburb', 'state', 'postcode', 'country']; var LocationColumn = React.createClass({ displayName: 'LocationColumn', propTypes: { co...
RNDemo/RNComment/node_modules/react-navigation/src/navigators/DrawerNavigator.js
995996812/Web
/* @flow */ import React from 'react'; import { Dimensions, Platform } from 'react-native'; import createNavigator from './createNavigator'; import createNavigationContainer from '../createNavigationContainer'; import TabRouter from '../routers/TabRouter'; import DrawerScreen from '../views/Drawer/DrawerScreen'; impo...
src/components/GlobalSearchResults.js
FiviumAustralia/RNSH-Pilot
import React, { Component } from 'react'; import { Link } from 'react-router'; import SearchResultRow from 'components/SearchResultRow'; import GlobalSearchFilters from 'components/GlobalSearchFilters'; import styles from './GlobalSearchResults.scss'; export default class GlobalSearchResults extends Component { rend...
src/containers/todo_item_detail.js
vijayviji/react-native-redux-todoapp
import React, { Component } from 'react'; import TodoItemDetailComp from '../components/todo_item_detail' import { MarkTodo } from '../action_creators'; import { TodoStates } from '../constants'; export default class TodoItemDetail extends Component { constructor(props) { super(props); } componentDidMo...
demo/sections/Example/Prop.js
joshq00/react-mdl
import React from 'react'; import Code from './Code'; function getJSON( value ) { const json = JSON.stringify( value, 0, 2 ); return json.replace( /"([^"]+)":/g, '$1:' ).trim(); } const Prop = ( props ) => { let { attr, value } = props; attr = ` ${ attr }`; if ( value === true ) { return <s...
src/components/groups/Edit.js
dhruv-kumar-jha/productivity-frontend
'use strict'; import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import { Modal, Spin, Icon, message, Button, Form, Input } from 'antd'; import ModalHeader from 'app/components/productivity/modal/Header'; const FormItem = Form.Item; import { graphql } from 'react-apollo'; import...
app/javascript/mastodon/features/favourites/index.js
hyuki0000/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchFavourites } from '../../actions/interactions'; import { ScrollContainer } fr...
RNApp/app/components/GenericTextInput/GenericTextInput.js
abhaytalreja/react-native-telescope
import React from 'react'; import { View, TextInput } from 'react-native'; import styles from './styles'; const GenericTextInput = (props) => { return ( <View> {props.borderTop ? <View style={styles.divider} /> : null} <TextInput style={styles.input} autoCapitalize="none" auto...
tests/components/circular-grid-lines-tests.js
Apercu/react-vis
import test from 'tape'; import React from 'react'; import {mount} from 'enzyme'; import CircularGridLines from 'plot/circular-grid-lines'; import {testRenderWithProps, GENERIC_XYPLOT_SERIES_PROPS} from '../test-utils'; import FauxRadialScatterplot from '../../showcase/plot/faux-radial-scatterplot'; testRenderWithProp...
src/InfoPanel.js
honmanyau/muup-story
import React, { Component } from 'react'; import './GameController.css'; class InfoPanel extends React.Component { render() { let player = this.props.player; let HPPercentage = player.hp / player.mhp * 100; const HPBarFillWidth = { width: HPPercentage + "%" }; return( <div className...
assets/jqwidgets/demos/react/app/grid/bindingtoremotedata/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render() { let source = { datatype: 'jsonp', datafields: [ { name: 'countryName'...
client/modules/App/components/DevTools.js
tranphong001/BIGVN
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-w" > <LogMonitor /> ...
source/server/routes/main/index.js
ericelliott/universal-react-boilerplate
import React from 'react'; import { match } from 'react-router'; import renderLayout from 'server/render-layout'; import render from 'server/render'; import settings from 'server/settings'; import configureStore from 'shared/configure-store'; import createRoutes from 'shared/routes'; const store = configureStore(); ...
src/demo/field.js
react-entanglement/react-entanglement
import React from 'react' export default function Field({ value, onChange }) { return <input onChange={e => onChange(e.target.value)} value={value} /> }
_experiment/react-fetch-github-repo/v1-external-fetch-file/src/Repo.js
David-Castelli/react-testing
// Render of single element import React from 'react'; import {render} from 'react-dom'; // Single element const Repo = ({repo, item}) => <article> <div className='article-content'> {item} <a href={repo.url}> <h3 className='title'>{repo.name}</h3> </a> <p className='description'>{repo.description}</p...
src/js/ui/components/entryListFilter.js
hiddentao/heartnotes
import _ from 'lodash'; import React from 'react'; import { connectRedux } from '../helpers/decorators'; import Loading from './loading'; var Component = React.createClass({ propTypes: { searchKeyword: React.PropTypes.string, }, getDefaultProps: function() { return { searchKeyword: null, }...
node_modules/react-bootstrap/es/Well.js
geng890518/editor-ui
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/components/layout/newProject/imageUploader.js
communicode-source/communicode
import React from 'react'; import styles from './../../../assets/css/pages/createProject.scss'; class ImageUpload extends React.Component { constructor() { super(); this.state = {file: '', imagePreviewUrl: ''}; } _handleSubmit(e) { e.preventDefault(); } _handleImageChange(...
src/svg-icons/hardware/phonelink-off.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhonelinkOff = (props) => ( <SvgIcon {...props}> <path d="M22 6V4H6.82l2 2H22zM1.92 1.65L.65 2.92l1.82 1.82C2.18 5.08 2 5.52 2 6v11H0v3h17.73l2.35 2.35 1.27-1.27L3.89 3.62 1.92 1.65zM4 6.27L14.73 17H4V6...
frontend/src/routes/Home/components/HomeView.js
qurben/mopidy-jukebox
import React from 'react' import DuckImage from '../assets/Duck.jpg' import classes from './HomeView.scss' export const HomeView = () => ( <div> <h4>Welcome!</h4> <img alt='This is a duck, because Redux!' className={classes.duck} src={DuckImage} /> </div> ) export default HomeView
docs/src/app/components/pages/components/Snackbar/ExampleTwice.js
skarnecki/material-ui
import React from 'react'; import Snackbar from 'material-ui/Snackbar'; import RaisedButton from 'material-ui/RaisedButton'; export default class SnackbarExampleTwice extends React.Component { constructor(props) { super(props); this.state = { message: 'Event 1 added to your calendar', open: fals...
src/action-button.js
lonord/react-marked-editor
import React, { Component } from 'react'; import propTypes from 'prop-types'; class ActionButton extends Component { render() { const styles = { wrapper: { height: this.props.height, width: this.props.width }, btn: { height: this.props.height - 2, width: this.props.width - 2, lineHeight...
app/components/FileList.js
zoo1/fil
import _ from 'underscore'; import React from 'react'; import {connect} from 'react-redux'; import classNames from 'classnames'; import {createFile, deleteFile, renameFile, openFile} from 'actions/files'; class FileRenameForm extends React.Component { constructor(props) { super(props); this.state = ...
src/components/AddClient/components/ClientRole/StaffRole.js
TheModevShop/craft-app
import React from 'react'; import _ from 'lodash'; import Radio from 'components/uiElements/Radio/Radio'; import './staff-role.less'; class StaffRole extends React.Component { constructor(...args) { super(...args); this.state = {}; } render() { return ( <div className="staff-role-wrapper"> ...
src/components/top-menu/switch.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2017 Loki Education (Social Enterprise) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, o...
packages/mineral-ui-icons/src/IconWbIridescent.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 IconWbIridescent(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconP...
frontend/app_v2/src/components/WidgetArea/WidgetAreaContainer.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' // FPCC import WidgetAreaData from 'components/WidgetArea/WidgetAreaData' import Widget from 'components/Widget' import LazyLoader from 'components/LazyLoader' function WidgetAreaContainer({ id }) { const { widgets } = WidgetAreaData({ id }) return ( ...
js/components/AlertBar.js
msldiarra/signals-ui
import React from 'react'; export default class AlertBar extends React.Component { render() { let progressBarClass = (this.props.tank.fillingrate > 50) ? "progress-bar progress-bar-success" : (this.props.tank.fillingrate > 30) ? "progress-bar progress-bar-warning":...
packages/material-ui-icons/src/CompareArrows.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z" /></g> , 'CompareArrows');
components/Layout/Layout.js
tbescherer/TrumpAnxietyHotline
import {connect} from 'react-redux'; import React from 'react'; import Header from './Header'; import s from './Layout.css'; import store from '../../core/store.js'; class Layout extends React.Component { constructor(props) { super(props); } componentDidMount() { window.componentHandler.upgradeElem...
frontend/teg-web-ui/src/common/topNavigation/StaticTopNavigation.js
tegh/tegh-daemon
import React from 'react' import { Link } from 'react-router-dom' import classnames from 'classnames' import Typography from '@mui/material/Typography' import Hidden from '@mui/material/Hidden' import IconButton from '@mui/material/IconButton' import MenuIcon from '@mui/icons-material/Menu' import useStyle from './To...
client/src/App.js
teenoh/Hello-Books
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
docs/app/Examples/views/Statistic/Types/StatisticExampleBottomLabel.js
mohammed88/Semantic-UI-React
import React from 'react' import { Statistic } from 'semantic-ui-react' const StatisticExampleBottomLabel = () => ( <div> <Statistic> <Statistic.Value>5,550</Statistic.Value> <Statistic.Label>Downloads</Statistic.Label> </Statistic> <Statistic value='5,500' label='Downloads' /> </div> ) e...
node_modules/antd/es/button/button.js
yhx0634/foodshopfront
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
.history/src/components/GKM/Category_20170624164531.js
oded-soffrin/gkm_viewer
import React from 'react'; import _ from 'lodash' const Category = ({ category }) => { const items = _.map(category.items, (i) => (<div style={{ display: 'inline-block', padding: '10px' }}>{i.text}</div>)) console.log(items); return ( <div> <div> {category.type}: {category.text} </div> <div>Item...
app/components/Slider.js
firewenda/testwebsite
import React from 'react'; import Slider from 'react-slick'; class SimpleSlider extends React.Component{ render(){ let settings = { dots: true, infinite: true, speed: 500, slidesToShow: 1, slidesToScroll: 1, autoplay: true, }; return ( <div className='slide-car...
src/js/Containers/NewsContainer.js
RoyalSix/Eagle-Connect
/** * @file This is the container for the actual component * This file should handle the business logic of the component * There should be no styling/css properties in this file * In this way we can have a separation of concerns handle * will allow for easier testing * {@link https://medium.com/@dan_abramov...
packages/react/src/views/Server.js
wq/wq.app
import React from 'react'; import { useRenderContext } from '../hooks'; const HTML = '@@HTML'; export default function Server() { const html = useRenderContext()[HTML]; return ( <> <p>This renderer does not (yet) support server-rendered HTML.</p> <pre> <code>{ht...
src/frontend/components/EventView.js
Bernie-2016/ground-control
import React from 'react' import Relay from 'react-relay' import {BernieText} from './styles/bernie-css' import {Paper, Styles} from 'material-ui' import EventPreview from './EventPreview' import EventInvalid from './EventInvalid' import yup from 'yup' import MuiThemeProvider from 'material-ui/lib/MuiThemeProvider' imp...
client/views/directory/ChannelsTab.js
VoiSmart/Rocket.Chat
import React from 'react'; import NotAuthorizedPage from '../../components/NotAuthorizedPage'; import { usePermission } from '../../contexts/AuthorizationContext'; import ChannelsTable from './ChannelsTable'; function ChannelsTab(props) { const canViewPublicRooms = usePermission('view-c-room'); if (canViewPublicRo...
app/components/H3/index.js
rajeshbhatt/shopping-cart-redux
import React from 'react'; function H3(props) { return ( <h3 {...props} /> ); } export default H3;
src/Parser/Druid/Guardian/Modules/Features/FrenziedRegenGoEProcs.js
hasseboulen/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import SPELLS from 'common/SPELLS'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatant...
frontend/src/Settings/CustomFormats/CustomFormats/Specifications/AddSpecificationModalContentConnector.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { fetchCustomFormatSpecificationSchema, selectCustomFormatSpecificationSchema } from 'Store/Actions/settingsActions'; import AddSpecificationModalContent...
src/js/views/UserArea/UserArea.js
TheoZimm/SaltyDashboard
import React from 'react'; import {AuthorizedComponent} from 'react-router-role-authorization'; import routes from '../../routes'; class UserArea extends AuthorizedComponent { constructor(props) { super(props); // Get user role from localStorage(session) and define allowed roles this.userR...
src/svg-icons/editor/space-bar.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorSpaceBar = (props) => ( <SvgIcon {...props}> <path d="M18 9v4H6V9H4v6h16V9z"/> </SvgIcon> ); EditorSpaceBar = pure(EditorSpaceBar); EditorSpaceBar.displayName = 'EditorSpaceBar'; export default EditorS...
src/screens/main/main.screen.js
Barylskyigb/simple-debts-react-native
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, Text, FlatList, Image, RefreshControl, TouchableWithoutFeedback, ActivityIndicator } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import IonIcon from 'react-native-vector-icons/Io...
creditcardsimulation_redux_hooks/src/index.js
balaSpyrus/code
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import rootReducer from './reducers'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; const store = createStore(rootReducer); ReactD...
packages/cf-builder-table/example/basic/component.js
manatarms/cf-ui
import React from 'react'; import { connect } from 'react-redux'; import { TableBuilder, tableReducer, tableActions } from 'cf-builder-table'; import { TableCell } from 'cf-component-table'; import { Button as ButtonUnstyled, ButtonTheme } from 'cf-component-button'; import { applyTheme } from 'cf-style-container'; co...
react/features/base/media/components/native/Video.js
bgrozev/jitsi-meet
// @flow import React, { Component } from 'react'; import { RTCView } from 'react-native-webrtc'; import { Pressable } from '../../../react'; import styles from './styles'; import VideoTransform from './VideoTransform'; /** * The type of the React {@code Component} props of {@link Video}. */ type Props = { mi...
collect-webapp/frontend/src/datamanagement/components/recordeditor/fields/CompositeAttributeFormItem.js
openforis/collect
import React from 'react' import { Col, Label, Row } from 'reactstrap' const CompositeAttributeFormItem = ({ field, label, inputField, labelWidth = 50 }) => { const widthPx = `${labelWidth}px` return ( <Row key={field}> <Col style={{ width: widthPx, maxWidth: widthPx }}> <Label>{label}</Label> ...
app/containers/LanguageProvider/index.js
oualid-mazouz/fbchallenge
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/Icons/Cancel.js
hasseboulen/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/search/?q=circled%20cross&i=1144421 // Created by johartcamp from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" {...other}> <path d="M 50 5 C 25.18272 5 5 25.1827 5 50 C 5 74.8173 25.18272 9...
frontends/xcms/app/index.js
suryakencana/niimanga
require('es6-shim'); require('./styles.css'); require("font-awesome-webpack"); require('bootstrap-table/dist/bootstrap-table.css'); require('bootstrap-table/dist/bootstrap-table.js'); import React from 'react'; import Router from 'utils/router'; import { Provider } from 'react-redux'; import configureStore from './st...
lib/cli/generators/REACT_NATIVE/template/storybook/stories/index.js
shilman/storybook
import React from 'react'; import { Text } from 'react-native'; import { storiesOf } from '@storybook/react-native'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; import Button from './Button'; import CenterView from './CenterView'; import Welcome from './Welcome'...
fields/types/relationship/RelationshipField.js
ligson/keystone
import _ from 'underscore'; import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import superagent from 'superagent'; import { Button, FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'RelationshipField', shouldCollapse () { // many:true relationsh...
webapp-src/src/MainScreen/FullScreen.js
babelouest/taliesin
import React, { Component } from 'react'; import { Row, Col, Image, ButtonGroup, Button, MenuItem, DropdownButton } from 'react-bootstrap'; import FontAwesome from 'react-fontawesome'; import StateStore from '../lib/StateStore'; import i18n from '../lib/i18n'; class FullScreen extends Component { constructor(props) ...
app/javascript/mastodon/features/account_timeline/index.js
kirakiratter/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { fetchAccount } from '../../actions/accounts'; import { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/timelines'; import ...
sonar-flow-plugin/src/main/js/components/FlowIssuesList.js
I8C/sonar-flow-plugin
import React from 'react'; import FlowIssueItem from './FlowIssueItem.js' import {findIssues} from '../functions/sonar_api.js' export default class FlowIssuesList extends React.PureComponent { constructor(props) { super(props); // this.props.projectKey // this.props.selectedIssue // this.props.onSe...
src/index.js
grishanin/moviepilot-trending
import React from 'react'; import App from './App'; require('./css/main.less'); React.render(<App />, document.getElementById('root'));
tests/react_modules/es6class-proptypes-callsite.js
facebook/flow
/* @flow */ import React from 'react'; import Hello from './es6class-proptypes-module'; import type {Node} from 'react'; class HelloLocal extends React.Component<{name: string}> { defaultProps = {}; propTypes = { name: React.PropTypes.string.isRequired, }; render(): Node { return <div>{this.props.name}...
app/components/views/videoTabs/VideoList.js
MutatedBread/binary-academy-rn
import React, { Component } from 'react'; import { View } from 'react-native'; import { List, Content, Container, ListItem, Left, Right, Body, Button, Thumbnail, Text, Icon } from 'native-base'; import Loading from './Loading.js' import LoadingMoreVideoSpinner from './Load...
app/static/src/diagnostic/EquipmentForm_modules/AditionalEqupmentParameters_modules/TransformerParams.js
SnowBeaver/Vision
import React from 'react'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import {findDOMNode} from 'react-dom'; import {hashHistory} from 'react-router'; import {Link} from 'react-router'; im...
node_modules/@expo/vector-icons/createIconSet.js
RahulDesai92/PHR
import React from 'react'; import { Text } from 'react-native'; import { Font } from 'expo'; import createIconSet from './vendor/react-native-vector-icons/lib/create-icon-set'; import createIconButtonComponent from './vendor/react-native-vector-icons/lib/icon-button'; export default function(glyphMap, fontName, expoAs...
src/components/Main.js
Royzx/gallery-by-react
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom'; //获取图片相关数据 var imageDatas = require('../data/imageDatas.json'); //利用自执行函数,将图片名信息转成图片URL路径信息 imageDatas = (function getImageURL(imageDataArr){ for(let i = 0,j=imageDataArr.length;i<j;i++...
src/svg-icons/navigation/arrow-drop-down-circle.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDropDownCircle = (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 2zm0 12l-4-4h8l-4 4z"/> </SvgIcon> ); NavigationArrowDropDownCircle =...
fixtures/dom/src/components/fixtures/input-change-events/RadioGroupFixture.js
brigand/react
import React from 'react'; import Fixture from '../../Fixture'; class RadioGroupFixture extends React.Component { constructor(props, context) { super(props, context); this.state = { changeCount: 0, }; } handleChange = () => { this.setState(({changeCount}) => { return { chan...
fields/types/geopoint/GeoPointColumn.js
Adam14Four/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var GeoPointColumn = React.createClass({ displayName: 'GeoPointColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue...
src/Interpolate.js
mengmenglv/react-bootstrap
// https://www.npmjs.org/package/react-interpolate-component // TODO: Drop this in favor of es6 string interpolation import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; const REGEXP = /\%\((.+?)\)s/; const Interpolate = React.createClass({ displayName: 'Interpolate', ...
docs/src/sections/OverlaySection.js
Terminux/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function OverlaySection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <A...
examples/todomvc/index.js
STRML/redux
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
src/routes.js
NathanBWaters/website
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { TheRunners, ProjectDashboard, Outfitr, GoAlgo, JumpstartGUI, Website } from 'components'; import { App, Chat, Home, Widgets, ...
app/renderInBrowser.js
theseushu/runcai
import React from 'react'; import ReactDOM from 'react-dom'; import { match, applyRouterMiddleware, Router } from 'react-router'; import { useScroll } from 'react-router-scroll'; import AppRoot from 'containers/AppRoot'; import FullScreenGallery from 'modules/fullScreenGallery'; import MapDialog from 'modules/mapDialog...
packages/cf-component-progress/src/Progress.js
mdno/mdno.github.io
import React from 'react'; import PropTypes from 'prop-types'; import Link from 'cf-component-link'; import { createComponent } from 'cf-style-container'; import { clearFix } from 'polished'; const styles = () => ({ position: 'relative' }); const Bar = createComponent( ({ theme }) => ({ display: 'block', ...
src/components/theme-legacy/form/instructions/target-state.js
MoveOnOrg/mop-frontend
import React from 'react' const TargetState = () => ( <div> <h4>Targeting Your Governor or State Legislature</h4> <p>If you choose <strong>The entire State House</strong>, then your petition signers will be asked to sign a petition addressed to their individual representative in the state house of representa...
src/screens/search/components/DestinationSearch/DestinationSearch.js
vio-lets/Larkyo-Client
import React from 'react'; // import './PeopleSearch.css'; export default class DestinationSearch extends React.Component { constructor() { super(); this.state = {} } render() { return( <div className="destinationSearchContainer"> <h2>Destination search ...