path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
webapp/src/component/user_loved_filter_panel.js | hfcc/rflove | import React from 'react';
import _ from 'lodash';
export default class UserLovedFilterPanel extends React.Component {
render() {
return (
<div className="panel panel-profile margin-bottom-20">
<div className="panel-heading overflow-h">
<h2 className="panel-t... |
src/components/FollowUpIntent.js | FiviumAustralia/RNSH-Pilot | import React, { Component } from 'react';
import Panel from './Panel';
import { Select } from './widgets';
import styles from './FollowUpIntent.scss';
export default class FollowUpIntent extends Component {
render () {
return (
<Panel title='Intent' >
<Select
options={[
{key: ... |
src/esm/components/action/checkable-button/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["checkPosition", "isChecked", "className", "children", "error"];
import React from 'react';
import PropTypes from 'prop-types';
import { Button } from ... |
packages/node_modules/@ciscospark/react-component-add-file-button/src/index.js | Altocloud/alto-react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon, {ICON_TYPE_ADD} from '@ciscospark/react-component-icon';
import styles from './styles.css';
export default function AddFileButton(props) {
const {
onChange
} = props;
return (
<div className... |
src/chat/members/MemberListView.js | elarasu/roverz-chat | import React, { Component } from 'react';
import { List, ListItem } from 'react-native-elements';
import { ListView } from 'realm/react-native';
import { Actions } from 'react-native-router-flux';
import UserAvatar from 'react-native-user-avatar';
import {
ScrollView,
StatusBar,
Text,
View,
Dimensions,
St... |
js/components/NotFound.js | syarul/isoblog | import React from 'react';
export default class NotFound extends React.Component{
render() {
return <div>404: Page not Found</div>
}
}
|
src/server.js | DenisPostu/react-redux-universal-hot-example | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import createLocation from 'history/lib/createLocation';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'pat... |
src/components/Body.js | CoreyBurkhart/pomodoro-wonderful | import React, { Component } from 'react';
import Slider from './Body-dependencies/Slider';
import Clock from './Body-dependencies/Clock';
import '../css/body.css';
export default class Body extends Component {
//state should be here since both the Slider and Clock need to share the value of the imputs
construct... |
example/src/screens/Transitions.js | BrendonSled/react-native-navigation | import React from 'react';
import {StyleSheet, ScrollView, Text} from 'react-native';
import Row from '../components/Row';
class Transitions extends React.Component {
showCollapsingHeader = () => {
this.props.navigator.showModal({
title: 'Collapsing Header',
screen: 'example.Transitions.CollapsingHe... |
react-reactivity-test/client/main.js | hwillson/meteor-troubleshooting | import { Meteor } from 'meteor/meteor';
import { Tracker } from 'meteor/tracker';
import { render } from 'react-dom';
import React from 'react';
import { Widgets } from '../imports/api/widgets/collection';
class WidgetsComponent extends React.Component {
componentDidMount() {
Tracker.autorun(() => {
const... |
src/data-fields/autocomplete-data-field.js | apconic/aos-forms | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import AutoComplete from 'material-ui/AutoComplete';
export default class AutoCompleteDataField extends Component {
static propTypes = {
dataSource: PropTypes.array,
dataSourceConfig: PropTypes.object,
displayField: PropTypes.s... |
src/routes/home/index.js | tarixgit/test | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Home from './Home';
impo... |
src/js/jobs/components/map/MapsPlaceIcon.js | tpucci/jobads-webapp | import React from 'react';
import SvgIcon from 'material-ui/SvgIcon';
const iconStyle = {
viewBox: "0 0 24 24",
};
const MapsPlaceIcon = (props) => (
<SvgIcon {...props} viewBox={iconStyle.viewBox}>
<defs>
<linearGradient id="MyGradient2">
<stop offset="0%" stopColor="#b64be8" />
... |
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js | birendra-ideas2it/react-router | /*globals COURSES:true */
import React from 'react'
class Assignment extends React.Component {
render() {
let { courseId, assignmentId } = this.props.params
let { title, body } = COURSES[courseId].assignments[assignmentId]
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
</div>
... |
src/components/playback_snowflake.js | JohnDHamm/nog-web | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { updateDefaultSpeed } from '../actions';
import values from '../styles/values';
import Snowflake from './snowflake';
import ButtonText from './button_text';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
im... |
src/components/children/SavePlaylist.js | Nfinley/Showcase-Playlist-Generator | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import _isEmpty from 'lodash/isEmpty';
import { Col, Thumbnail } from 'react-bootstrap';
import equalizer from '../../svgIcons/equalizer.svg';
export class SavePlaylist extends Component {
constructor... |
app/components/ProgressBar/index.js | FlorianVoct/monPropreMix | import React from 'react';
import ProgressBar from './ProgressBar';
function withProgressBar(WrappedComponent) {
class AppWithProgressBar extends React.Component {
constructor(props) {
super(props);
this.state = {
progress: -1,
loadedRoutes: props.location && [props.location.pathname]... |
src/parser/shared/modules/spells/bfa/azeritetraits/EphemeralRecovery.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS/index';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
import ItemManaGained from 'interface/ItemManaGained';
/**
Casting a healing spell restores 12 mana over 8 sec. Sta... |
app/js/components/Console.js | schlosser/shortener-web | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import Navbar from './Navbar';
import Footer from './Footer';
import ShortlinkList from './ShortlinkList';
import ShortlinkDetail from './ShortlinkDetail';
import NotFoundPage from '../pages/NotFoundPage';
import Home from './Home';
import { ... |
dva/antdmobile/src/pages/list/list.js | gubaojian/trylearn | /**
* @description 作为入口文件,主要负责引入 App (components container)、model,同时初始化 dva 等。
* 入口文件应当保持尽可能的简洁。
* @author amas
*/
// 引入各类基础依赖
import React from 'react';
import dva from 'dva/mobile';
import App from './App';
import Lj from '../../common/lengjing.middleware';
// Base 引入
import '../../common/base';
// Model引入
imp... |
test/integration/css-fixtures/custom-configuration/pages/_app.js | JeromeFitz/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
client/extensions/woocommerce/app/settings/taxes/save-button.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { localize } from 'i18n-calypso';
import page from 'page';
/**
* Internal dependencies
*/
import Button from 'components/button';
import {
are... |
src/components/footer.js | gelo592/IntegrativeMed-Site | import { Link } from 'gatsby'
import React from 'react'
import logo from '../images/logo_w.svg'
// import classnames from 'classnames'
import { Divider, Grid, Typography, IconButton } from '@material-ui/core';
import { withStyles } from '@material-ui/core/styles';
import { colors } from '../constants/constants';
import... |
app/javascript/mastodon/features/status/components/card.js | imomix/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import punycode from 'punycode';
const IDNA_PREFIX = 'xn--';
const decodeIDNA = domain => {
return domain
.split('.')
.map(part => part.indexOf(IDNA_PREFIX) === 0 ? punycode.decode(part.slice(IDNA_PREFIX.length)) : part)
... |
examples/simple/components/App.js | winkler1/icedam | import React, { Component } from 'react';
import { add } from 'icedam';
export default class App extends Component {
render() {
return (
<p>
2 + 2 = {add(2, 2)}
</p>
);
}
}
|
src/components/icons/LaunchIcon.js | austinknight/ui-components | import React from 'react';
const LaunchIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24">
{props.title && <title>{props.title}</title>}
<path d="M0 0h24v24H0z" fill="none" />
<path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.... |
src/components/calendar.js | cheeki/react-calendar |
import React from 'react';
import CalendarTitle from './calendarTitle';
import CalendarBody from './calendarBody';
import CalendarMonthSelect from './calendarMonthSelect'
export default class Calendar extends React.Component {
static defaultProps = {
selectRange: false,
locale: 'en-US'
};
... |
app/src/Movie/containers/Movie.js | rmonnier/hypertube | import React, { Component } from 'react';
import axios from 'axios';
import { connect } from 'react-redux';
import { injectIntl } from 'react-intl';
import Loading from '../../General/components/Loading';
import TorrentTable from '../components/TorrentTable';
import CommentTable from '../../Comment/container/CommentTab... |
src/components/EventSponsorCard.js | OpenCollective/frontend | import React from 'react';
import { FormattedMessage, FormattedDate } from 'react-intl';
import { get } from 'lodash';
const EventSponsorCard = ({ sponsor }) => (
<a href={`/${sponsor.slug}`}>
<div className="EventSponsorCard">
<style jsx>
{`
.EventSponsorCard {
display: inlin... |
docs/app/Components/ComponentDoc/ComponentProp/ComponentPropFunctionSignature.js | shengnian/shengnian-ui-react | import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import { neverUpdate } from 'docs/app/HOC'
import ComponentPropExtra from './ComponentPropExtra'
const descriptionStyle = {
flex: '5 5 0',
padding: '0.1em 0',
}
const nameStyle = {
flex: '2 2 0',
padding: '0.1em 0',
}
const ... |
src/parser/warrior/arms/modules/features/RageDetails.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Tab from 'interface/others/Tab';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import { formatPercentage } from 'common/format';
import Icon from 'common/Icon';
import ResourceBreakdown from 'parser/shared/mo... |
src/Image.js | HPate-Riptide/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import { bsClass, prefix, splitBsProps } from './utils/bootstrapUtils';
const propTypes = {
/**
* Sets image as responsive image
*/
responsive: React.PropTypes.bool,
/**
* Sets image shape as rounded
*/
rounded: React.PropTypes.bool,... |
src/static/containers/Root/Root.dev.js | spiskommg/mm-v2 | import React from 'react';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import PropTypes from 'prop-types';
import routes from '../../routes';
import { dataFetchData } from '../../actions/data';
import DevTools from './DevTools';
import App from '../../app';
export ... |
apps/mk-app-portal/apps/mk-app-portal-app1/action.js | ziaochina/mk-demo | import React from 'react'
import { action as MetaAction, AppLoader } from 'mk-meta-engine'
import config from './config'
class action {
constructor(option) {
this.metaAction = option.metaAction
this.config = config.current
}
onInit = ({ component, injections }) => {
this.component ... |
src/decorators/withViewport.js | pandoraui/react-starter | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
docs/src/app/components/pages/components/Tabs/ExampleSwipeable.js | mtsandeep/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
// From https://github.com/oliviertassinari/react-swipeable-views
import SwipeableViews from 'react-swipeable-views';
const styles = {
headline: {
fontSize: 24,
paddingTop: 16,
marginBottom: 12,
fontWeight: 400,
},
slide: {
... |
client/src/components/Draftail/decorators/Document.js | timorieber/wagtail | import PropTypes from 'prop-types';
import React from 'react';
import Icon from '../../Icon/Icon';
import TooltipEntity from '../decorators/TooltipEntity';
import { STRINGS } from '../../../config/wagtailConfig';
const documentIcon = <Icon name="doc-full" />;
const missingDocumentIcon = <Icon name="warning" />;
co... |
src/index.js | tilgram/tilgram-frontend | import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import React from 'react';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import store from './store';
import App from './components/App';
import Article from './components/Article';
import Editor from './components/Ed... |
src/modules/todo/containers.js | scubism/react_todo_web | import React from 'react';
import { Link } from 'react-router'
if (process.env.BROWSER) {
require("./todo.css");
}
class TodoPage extends React.Component {
render() {
const { dispatch } = this.props;
return (
<div className="todo">
<header><h1>todos</h1></header>
<section>
... |
views/blocks/Photo/PhotoContainer.js | AlSoEdit/team5 | import React from 'react';
import Photo from './Photo';
import sender from './../Sender/Sender';
import {getGeolocation} from './PhotoGeolocation';
import PhotoSender from '../QuestPhotos/PhotoSender.js';
const PhotoWithSending = sender(Photo);
export default class PhotoContainer extends React.Component {
constru... |
src/routes.js | D4vx/recipeasy | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
import FindRecipe from './containers/FindRecipe';
import Favourites from './containers/Favourites';
import NotFoundPage from './components/NotFoundPage';
expor... |
src/Composite/FieldWithSelectionComposite/FieldWithSelectionComposite.driver.js | nirhart/wix-style-react | import React from 'react';
import FieldWithSelectionComposite from './FieldWithSelectionComposite';
import ReactDOM from 'react-dom';
function isLabel(element) {
return element.tagName.toLowerCase() === 'label';
}
const fieldWithSelectionCompositeDriverFactory = ({element, wrapper}) => {
const firstChild = elemen... |
3_compress_ensure_render/component/common/searchInput.js | chkui/react-server-demo | import React from 'react'
import Select from './select'
const cn = require('classnames/bind').bind(require('./searchInput.scss'))
/**
* @param {string} value: 设定当前搜索内容,仅仅是设定文本,不会触发搜索动作
* @param {string} text: 设定默认搜索内容
* @param {array} selecteds:[{ //下拉菜单扩展
* id:'language', 回调标记id
* options:[{id: 'javascr... |
src/renderer/preferences.js | buttercup-pw/buttercup | import React from 'react';
import { ipcRenderer as ipc } from 'electron';
import { I18nextProvider } from 'react-i18next';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import i18n from '../shared/i18n';
import Preferences from './components/preferences';
import configureStore from '../sha... |
src/routes/Projects/components/ProjectDemo.js | mjchamoures/personalPortfolio | /* ProjectDemo component, which.....
*
* author : michael chamoures
* created date : 3/27/17
* last updated date : 3/28/17
*/
import React from 'react';
import { Panel } from 'react-bootstrap';
import TexasHoldEmComponent from './TexasHoldEmComponent';
import './styles/ProjectDemo.scss';
class ProjectDemo extend... |
node_modules/react-native/website/core/WebPlayer.js | RahulDesai92/PHR | /**
* 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... |
examples/shopping-cart/src/containers/App.js | lifeiscontent/redux | import React from 'react'
import ProductsContainer from './ProductsContainer'
import CartContainer from './CartContainer'
const App = () => (
<div>
<h2>Shopping Cart Example</h2>
<hr/>
<ProductsContainer />
<hr/>
<CartContainer />
</div>
)
export default App
|
src/scenes/home/profile/profile.js | tal87/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import Section from 'shared/components/section/section';
import IconCard from 'shared/components/iconCard/iconCard';
import Idme from 'shared/components/idme/idme';
import styles from './profile.css';
const Profile = ({ verified }) => (
<Section title="M... |
ReactCsv/components/HeaderRow.js | davidtimmons/react-csv | /**
* React CSV Spreadsheet v1.1.0
* David Timmons (github@timmons.io)
* http://david.timmons.io
* MIT License
*
* @summary A component controlling the table header.
* @module ReactCsv
*/
import React from 'react';
import Cell from './Cell';
/**
* Spreadsheet header row intended for column titles.
* @exten... |
.history/src/components/Row_20170804011216.js | radubrehar/evanghelic.ro | import React from 'react';
import { css } from 'glamor';
import join from './join';
const mainCls = css({
margin: '0 auto',
maxWidth: 960,
padding: '0px 1.0875rem 1.45rem'
});
const Row = props => {
return <div {...props} className={join(mainCls, props.className)} />;
};
export default Row;
|
components/feed/messageDetail.js | akashnautiyal013/ImpactRun01 |
'use strict';
import React, { Component } from 'react';
import{
StyleSheet,
View,
Image,
ScrollView,
Dimensions,
TouchableOpacity,
Text,
AlertIOS
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
var deviceWidth = Dimensions.get('window').width;
var device... |
client/src/main.js | ipselon/sdr-bootstrap-prepack | import 'babel-polyfill';
import './assets/css/react-widgets.css';
import './assets/css/bootstrap.css';
import './assets/css/font-awesome.css';
import './assets/css/app.css';
import './assets/js/bootstrap.js';
import Moment from 'moment';
import momentLocalizer from 'react-widgets/lib/localizers/moment';
momentLocalize... |
src/svg-icons/action/account-balance-wallet.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccountBalanceWallet = (props) => (
<SvgIcon {...props}>
<path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-... |
app/controllers/prerender.js | sullenor/skeleton | import { createRedux } from 'redux';
import { reset } from '../../bro/actions';
import { toJs } from 'mori';
import * as stores from '../../bro/stores';
import React from 'react';
import App from '../../bro/components/App';
export default function prerender(req, res, next) {
const redux = createRedux(stores);
red... |
src/svg-icons/image/photo.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhoto = (props) => (
<SvgIcon {...props}>
<path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/>
</SvgIcon>
);
ImagePhoto = p... |
src/containers/user-center/UserCenter.js | phodal/growth-ng | import React, { Component } from 'react';
import { Actions } from 'react-native-router-flux';
import ListItem from 'react-native-elements/src/list/ListItem';
import List from 'react-native-elements/src/list/List';
import { ScrollView, Platform } from 'react-native';
import DeviceInfo from 'react-native-device-info';
im... |
docs/app/Examples/elements/Button/Variations/ButtonExampleSocial.js | shengnian/shengnian-ui-react | import React from 'react'
import { Button, Icon } from 'shengnian-ui-react'
const ButtonExampleSocial = () => (
<div>
<Button color='facebook'>
<Icon name='facebook' /> Facebook
</Button>
<Button color='twitter'>
<Icon name='twitter' /> Twitter
</Button>
<Button color='google plus'>
... |
src/routes.js | harrislabel/personal_website | "use strict";
import React from 'react'
import { Route, IndexRoute } from 'react-router'
import Layout from './components/Layout';
import IndexPage from './components/IndexPage';
import AthletePage from './components/AthletePage';
import NotFoundPage from './components/NotFoundPage';
const routes = (
<Route path="/... |
RNLearning/z-day01/04-Carousel(ref).js | ivanl001/ReactNative-Learning | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ScrollView,
Image
} from 'react-native';
var Dimensions = require('Dimensions');
var {width} = Dimensions.get('window');
// 引入计时器... |
test/client/containers/success.js | berkeley-homes/near-miss-positive-intervention | import test from 'tape'
import React from 'react'
import { shallow } from 'enzyme'
import { Success } from '../../../src/client/containers/success.js'
import Header from '../../../src/client/components/header.js'
import BerkeleyLogo from '../../../src/client/components/berkeley_logo.js'
import ThanksMessage from '../..... |
app/containers/Root/index.js | FilipPyrek/school-project-match-generator | // @flow
import React from 'react';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import Theme from '../Theme';
import Routes from '../../routes';
type RootType = {
store: {},
history: {}
};
export default function Root({ store, history }: RootType) {
return (
... |
app/src/Frontend/modules/weui/pages/tab/tabbar_auto.js | ptphp/ptphp | /**
* Created by n7best.
*/
"use strict";
import React from 'react';
import Page from '../../component/page';
import {
Tab,
TabBarItem,
TabBarIcon,
TabBarLabel,
Article
} from '../../../../index';
import IconButton from '../home/images/icon_nav_button.png';
import IconMsg from '../home/images/... |
node_modules/react-bootstrap/es/Glyphicon.js | cmccandless/SolRFrontEnd | 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/AppSwipeActionItem/index.js | czy0729/react-alumni | /**
* AppSwipeActionItem 整合SwipeAction和List.Item,在有效的item左右添加了色边
* @version 170212 1.0
*/
import React from 'react';
import classNames from 'classnames';
import { SwipeAction, List } from 'antd-mobile';
import './index.less';
const prefixCls = 'components__app-swipe-action-item';
const AppSwipeActionItem = (props)... |
app/components/SearchBar.js | Fresh-maker/razor-client | // @flow
import React, { Component } from 'react';
import PillRow from './PillRow';
class SearchBar extends Component {
addPill = (e)=> {
const { updateSearch, currentSearch, addSearchPair, popSearchPair, fetchSearchResults } = this.props;
addSearchPair({
term: currentSearch,
category: e.target.... |
src/index.js | 692326532/touzsp | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
app/containers/FeaturePage/index.js | Jonathan-Steinmann/react-boilerplate-testing | /*
* FeaturePage
*
* List all the features
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
import List from './List';
import ListItem from './ListItem';
import ListItemTitle from './Li... |
app/components/Admin/Brand/EditBrand/index.js | VineRelay/VineRelayStore | import React from 'react';
import { createFragmentContainer, graphql } from 'react-relay';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
const Wrapper = styled.div`
display: flex;
flex-... |
frontend/components/End.js | ParroApp/parro | import React from 'react';
import Navbar from './Navbar';
import axios from 'axios';
class End extends React.Component {
constructor(props) {
super(props);
this.state = {
}
axios.get('/sendEmail')
.then(function(res) {
})
}
render() {
return(
<div>
<Navbar />
<... |
src/svg-icons/device/network-cell.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNetworkCell = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/>
</SvgIcon>
);
DeviceNetworkCell = pure(DeviceNetworkCell);
DeviceNetworkCell.displayNam... |
src/RadioGroup/index.js | narqo/react-islands | import React from 'react';
import Component from '../Component';
class RadioGroup extends Component {
constructor(props) {
super(props);
this.onChildCheck = this.onChildCheck.bind(this);
}
render() {
const { theme, size, type, name, disabled, value } = this.props;
const c... |
app/templates/src/main.js | bipedd/generator-react-standard | import React from 'react'
import { render } from 'react-dom'
import { Router, Route, browserHistory } from 'react-router'
import Home from 'containers/Home'
render((
<Router history={browserHistory}>
<Route path='/' component={Home} />
</Router>
), document.getElementById('app'))
|
src/icons/BlockIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class BlockIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zM8 24c0-8.84 7.16-16 16-16 3.7 0 7.09 1.... |
node_modules/react-bootstrap/es/Badge.js | joekay/awebb | 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/javascript/mastodon/components/missing_indicator.js | salvadorpla/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const MissingIndicator = () => (
<div className='regeneration-indicator missing-indicator'>
<div>
<div className='regeneration-indicator__figure' />
<div className='regeneration-indicator__label'>
<FormattedMessage id=... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | ElectricChiliCo/electricchili.co | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
examples/react-todomvc/containers/App.js | vslinko-forks/component-inspector | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createStore, combineReducers, compose } from 'redux';
import { Provider } from 'react-redux';
import * as reducers from '../reducers';
const reducer = combineReducers(reducers);
const store = createStore(reducer);
export default class... |
app/screens/AccountEditor/AccountEditorScreenView.js | JSSolutions/Perfi | import React from 'react';
import { View, TouchableOpacity } from 'react-native';
import T from 'prop-types';
import { getParam } from '../../utils/navHelpers';
import DeleteButton from './DeleteButton';
import {
Input,
Button,
ColorPicker,
Text,
KeyboardAvoidingView,
ScreenWrapper,
HeaderTitle,
} from '.... |
actor-apps/app-web/src/app/components/activity/UserProfile.react.js | mitchellporter/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
import PeerStore from 'stores/PeerStore';
import DialogStore from 'stores/DialogStore';
import AvatarItem from... |
src/containers/App.js | xxd3vin/bgy-portalbillquery | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import Top from '../components/Top';
import Footer from '../components/Footer';
import Sidebar from '../components/Sidebar';
class App extends React.Component {
render()... |
components/Calendar/CalendarItem/CalendarItem.js | NGMarmaduke/bloom | import PropTypes from 'prop-types';
import React from 'react';
import cx from 'classnames';
import momentPropTypes from 'react-moment-proptypes';
import moment from 'moment';
import css from './CalendarItem.css';
const defaultDate = moment();
export const defaultClassNames = {
root: css.root,
today: css.today,
... |
src/Alert.js | chilts/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Alert = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
onDismiss: React.PropTypes.func,
dismissAfter: React.PropTypes.number,
closeLabel: React.PropTypes.string
},
getD... |
example/src/components/doughnut.js | jerairrest/react-chartjs-2 | import React from 'react';
import {Doughnut} from 'react-chartjs-2';
const data = {
labels: [
'Red',
'Green',
'Yellow'
],
datasets: [{
data: [300, 50, 100],
backgroundColor: [
'#FF6384',
'#36A2EB',
'#FFCE56'
],
hoverBackgroundColor: [
'#FF6384',
'#36A2EB',
'#FFCE56'
]
}]
};
export defa... |
App/components/Root.js | cguirunas/reactJS_brazilgranites | import React, { Component } from 'react';
import {Link} from 'react-router';
import logoHeader from '../../assets/images/__main/logo.png';
import logoFooter from '../../assets/images/__main/logo-footer.png';
//Icons
import TiPhone from 'react-icons/lib/ti/phone';
import Tmenu from 'react-icons/lib/ti/th-menu';
import... |
gxa/src/main/javascript/bundles/differential-expression/src/tooltip/ContrastTooltipLoader.js | gxa/atlas | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-refetch'
import ReactTooltip from 'react-tooltip'
import URI from 'urijs'
import ContrastInfo from './ContrastInfo'
const tooltipStyles = {
padding: `2px !important`,
boxShadow: `0 0 1em darkgrey`,
maxWidth: `500px`,
... |
src/js/components/Buttons/Red.js | appdev-academy/appdev.academy-react | import PropTypes from 'prop-types'
import React from 'react'
import ClassNames from 'classnames'
export default class Red extends React.Component {
render() {
let buttonClasses = ClassNames({
'button': true,
'red': true,
'selected': this.props.selected,
'small': this.props.small
})... |
src/svg-icons/av/playlist-add-check.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistAddCheck = (props) => (
<SvgIcon {...props}>
<path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zM2 16h8v-2H2v2zm19.5-4.5L23 13l-6.99 7-4.51-4.5L13 14l3.01 3 5.49-5.5z"/>
</SvgIcon>
);
AvPlaylistAddCheck = pure... |
src/entry-server.js | JounQin/1stg | import React from 'react'
import App from 'App'
export default () => Promise.resolve(<App />)
|
example/pages/button/index.js | woshisbb43/coinMessageWechat | import React from 'react';
import {Button, ButtonArea} from '../../../build/packages';
import Page from '../../component/page';
import './button.less';
export default class ButtonDemo extends React.Component {
render() {
return (
<Page className="button" title="Button" subTitle="按钮" spacing>
... |
client/control.js | lwec/Song-Slider | import React from 'react';
import { render } from 'react-dom';
import Control from 'control/components/Control/Control';
render( <Control />, document.querySelector('#control') );
|
framework/react-native/meituan/src/scene/mine/index.js | huajianmao/learning | import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
class MineScene extends Component {
render() {
return (
<View>
<Text>
MineScene
</Text>
</View>
)
}
}
export default MineScene; |
src/main/viz/LocationTrack.js | snaheth/pileup.js | /**
* A track which shows the location of the base in the middle of the view.
* @flow
*/
'use strict';
import type {VizProps} from '../VisualizationWrapper';
import type {Scale} from './d3utils';
import React from 'react';
import ReactDOM from 'react-dom';
import EmptySource from '../sources/EmptySource';
import c... |
src/modules/xman/components/FlightList/Callsign.js | devteamreims/4me.react | import React from 'react';
import ToneDowner from './ToneDowner';
const Callsign = ({callsign, destination}) => {
const style = {
callsign: {
display: 'block',
fontSize: 24,
},
destination: {
fontWeight: 'normal',
},
};
return (
<div>
<span style={style.callsign}>{ca... |
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js | dut3062796s/actor-platform | import _ from 'lodash';
import React from 'react';
import { Styles, RaisedButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import ContactStore from 'stores/ContactStore';
import ContactActionCreators from 'actions/ContactActionCreators';
import AddContactStore from 'stores/AddContactStore'... |
src/components/Top/Top.js | ens-bid/ens-bid-dapp | // @flow weak
import React, { Component } from 'react';
import AppBar from 'material-ui/AppBar';
import Toolbar from 'material-ui/Toolbar';
import {WalletDialog} from './WalletDialog';
import IconButton from 'material-ui/IconButton';
import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List';
import... |
js/Preview.js | tmn/tMD | import React from 'react';
import omniscient from 'omniscient';
import marked from 'marked';
const component = omniscient.withDefaults({
jsx: true
});
const mixins = {
createMarkup: function () {
const data = this.props.cursor.get('editor');
return { __html: marked(data, { sanitize: true }) }
}
};
con... |
docs/src/app/components/pages/components/AutoComplete/ExampleDataSources.js | ArcanisCz/material-ui | import React from 'react';
import AutoComplete from 'material-ui/AutoComplete';
import MenuItem from 'material-ui/MenuItem';
const dataSource1 = [
{
text: 'text-value1',
value: (
<MenuItem
primaryText="text-value1"
secondaryText="☺"
/>
),
},
{
text: 'text-value2'... |
src/views/ProjectStoriesView/SearchFilter/index.js | asidiali/pivotal.press | import {Icon} from '../../../components';
import React from 'react';
import radium from 'radium';
const SearchFilter = props => (
<div style={props.styles.searchInputWrapper}>
<Icon icon="search" style={props.styles.searchIcon} />
<input
placeholder="search stories"
style={props.styles.searchInpu... |
src/svg-icons/editor/border-inner.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderInner = (props) => (
<SvgIcon {...props}>
<path d="M3 21h2v-2H3v2zm4 0h2v-2H7v2zM5 7H3v2h2V7zM3 17h2v-2H3v2zM9 3H7v2h2V3zM5 3H3v2h2V3zm12 0h-2v2h2V3zm2 6h2V7h-2v2zm0-6v2h2V3h-2zm-4 18h2v-2h-2v2zM13 ... |
client/src/components/App.js | andreminz/react-hot-kit | import React from 'react';
import styles from '../index.css';
const App = () => (
<div className={styles.app}>
<h2>react-hot-kit</h2>
<p>React Application Starter Kit</p>
</div>
);
export default App;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.