path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
Example/components/Launch.js | aksonov/react-native-router-native | import React from 'react';
import {View, Text, StyleSheet} from "react-native";
import Button from "react-native-button";
import {Actions} from "react-native-router-native";
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center",
alignItems: "center",
backgroundColor: "tran... |
src/components/docs/tabs.js | nordsoftware/react-foundation-docs | import React from 'react';
import Playground from 'component-playground';
import { StatelessComponentWarning } from '../app/warnings';
import {
Grid,
Cell,
Tabs,
TabItem,
TabsContent,
TabPanel
} from 'react-foundation';
export const TabsDocs = () => (
<section className="tabs-docs">
<Grid>
<Cel... |
packages/rmw-shell/src/providers/Firebase/Messaging/Context.js | TarikHuber/react-most-wanted | import React from 'react'
export const Context = React.createContext(null)
export default Context
|
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js | mattkrick/react-router | /*globals COURSES:true */
import React from 'react'
import { Link } from 'react-router'
class Sidebar extends React.Component {
render() {
let { assignments } = COURSES[this.props.params.courseId]
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{assignments.map(assignment =>... |
examples/validation/app.js | maludwig/react-redux-form | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import store from './store.js';
import UserForm from './components/user-form.js';
class App extends React.Component {
render() {
return (
<Provider store={store}>
<UserForm />
</Provider>
... |
src/svg-icons/content/reply-all.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentReplyAll = (props) => (
<SvgIcon {...props}>
<path d="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/>
</SvgIcon>
);
ContentReplyAll = pure(ContentReplyAll);
Conte... |
modules/TransitionHook.js | jepezi/react-router | import React from 'react';
import warning from 'warning';
var { object } = React.PropTypes;
var TransitionHook = {
contextTypes: {
router: object.isRequired
},
componentDidMount() {
warning(
typeof this.routerWillLeave === 'function',
'Components that mixin TransitionHook should have a rou... |
App/components/GalleryInternal.js | cguirunas/reactJS_brazilgranites | import React, { Component } from 'react';
import {Motion,spring} from 'react-motion';
var GalleryJSON = [];
GalleryJSON['en'] = require('../data/en/gallery.json');
GalleryJSON['pt'] = require('../data/pt/gallery.json');
GalleryJSON['es'] = require('../data/es/gallery.json');
GalleryJSON['fr'] = require('../data/fr/gal... |
client/index.js | Frostimage/Frostimage | import React from 'react';
import { render } from 'react-dom';
import * as THREE from 'three';
import OrbitControls from './public/dist/OrbitControls'
import Main from './components/Main/Main';
import TestView from './components/TestView';
import Header from './components/header/Header';
// import App from './component... |
application/components/user/paymentmethods/index.js | ronanamsterdam/squaredcoffee | import React, { Component } from 'react';
import { Text, View,ScrollView } from 'react-native';
import Button from 'react-native-button';
import {
Card,
CardImage,
CardTitle,
CardContent,
CardAction
} from 'react-native-card-view';
import { ADDING_CARD, REMOVING_CARD, MAKING_ORDER } from '../../.... |
frontend/src/components/applications/partnerApplicationsHeader.js | unicef/un-partner-portal | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { browserHistory as history } from 'react-router';
import HeaderNavigation from '../common/headerNavigation';
import { PROJECT_TYPES } from '../../helpers/constants';
import NewCfeiModalButton fro... |
src/js/components/Notification/stories/Status.js | grommet/grommet | import React from 'react';
import { Notification } from 'grommet';
import { Box } from '../../Box';
import { Text } from '../../Text';
const StatusNotification = () => (
<Box pad="large" justify="center" gap="large">
<Box gap="xsmall">
<Text size="medium">Default (No status prop)</Text>
<Notificatio... |
modules/plugins/quote/QuoteButton.js | devrieda/arc-reactor | import React from 'react';
import MenuButton from '../../components/MenuButton';
import ToggleBlockType from '../../helpers/Manipulation/ToggleBlockType';
const QuoteButton = React.createClass({
statics: {
getName: () => "quote",
isVisible: () => true
},
propTypes: MenuButton.propTypes,
getDefaultPro... |
src/Components/WalletApp.js | dylanbathurst/bacon-mobile | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { AppRegistry, StatusBar, View, ScrollView,
FlatList, StyleSheet, Image, Text } from 'react-native';
import { connect } from 'react-redux'
import async from 'async';
import Account from './Account.js';
import AccountNav from ... |
docs/src/app/components/pages/components/List/ExampleNested.js | igorbt/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import ActionGrade from 'material-ui/svg-icons/action/grade';
import ContentInbox from 'material-ui/svg-icons/content/inbox';
import ContentDrafts from 'material-ui/svg-icons/content/draft... |
src/svg-icons/notification/drive-eta.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDriveEta = (props) => (
<SvgIcon {...props}>
<path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 ... |
src/svg-icons/image/grid-on.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageGridOn = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6... |
src/js/components/nodes/Nodes.js | knowncitizen/tripleo-ui | /**
* Copyright 2017 Red Hat Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
src/react/LogMonitorButton.js | rrrene/redux-devtools | import React from 'react';
import brighten from '../utils/brighten';
const styles = {
base: {
cursor: 'pointer',
fontWeight: 'bold',
borderRadius: 3,
padding: 4,
marginLeft: 3,
marginRight: 3,
marginTop: 5,
marginBottom: 5,
flexGrow: 1,
display: 'inline-block',
fontSize: '... |
src/routes/Todos/components/TodoItem.js | aibolik/my-todomvc | import React from 'react'
import './Todoitem.scss'
class TodoItem extends React.Component {
constructor (props) {
super(props)
this.state = {
editMode: false
}
}
toggleEditMode = () => {
this.setState((prevState) => {
return {
editMode: !prevState.editMode
}
})
... |
src/js/index.js | jdd1260/react-project-starter | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { HashRouter, Route, Switch } from 'react-router-dom';
import promise from 'redux-promise';
import reducers from './reducers';
import Example from './compone... |
ReactToDo/src/index.js | michaelgichia/TODO-List | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/common/components/Routes.js | viltsu/FDB | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import { browserHistory } from 'react-router';
import App from './App';
import CalendarPage from '../../pages/calendar/page';
import QuotePage from '../../pages/quote/page';
import WeatherPage from '../../pages/weather/page';
import Transport... |
test/test_helper.js | brenotx/simple-react-blog | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
components/description.js | volodalexey/spachat | import React from 'react'
import extend_core from '../js/extend_core.js'
import dom_core from '../js/dom_core.js'
const Description = React.createClass({
getInitialState() {
return {
left: '0px',
top: '0px',
show: false,
content: ''
}
},
componentDidMount() {
this.descrip... |
src/client.js | nick/boulder-vote | import React from 'react'
import ReactDOM from 'react-dom'
import { BrowserRouter } from 'react-router-dom'
import Routes from './Routes'
import { ApolloProvider } from 'react-apollo'
import ApolloClient, { InMemoryCache } from 'apollo-client-preset'
const client = new ApolloClient({
cache: new InMemoryCache().resto... |
src/route/index.js | kobe1314/react_kobe | // =========================
// Base router
// =========================
// ===================
// Libs
// ===================
import React from 'react';
import { Route, Redirect, IndexRedirect } from 'react-router';
// ===================
// Containers
// ===================
import RootContainer from '../a_containe... |
public/js/components/admin/graphs/piechart.react.js | MadushikaPerera/Coupley | /**
* Created by Isuru 1 on 22/02/2016.
*/
import React from 'react';
import { Link } from 'react-router';
import GraphActions from './../../../actions/admin/GraphActions';
import GraphStore from './../../../stores/admin/GraphStore';
const pieChart = React.createClass({
getInitialState: function () {
return {... |
app/javascript/mastodon/features/following/index.js | esetomo/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 {
fetchAccount,
fetchFollowing,
expandFollowing,
} from '../../actions/account... |
packages/kitchen-sink/src/AppShell/Hamburger/Hamburger.js | spearwolf/blitpunk | import PropTypes from 'prop-types';
import React from 'react';
import styled from 'styled-components';
import './hamburger.scss';
const Container = styled.div`
transition-duration: 0.2s;
transition-timing-function: ease;
transition-property: transform;
.hamburger-inner,
.hamburger-inner::before,
.hamburg... |
blueocean-material-icons/src/js/components/svg-icons/image/camera-rear.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageCameraRear = (props) => (
<SvgIcon {...props}>
<path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zm3-20H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm-5 6c-1.11 0-2-.9-2-2s.89-2 1.99-2 2 .9 2 2C14 5.1 13.1 6 12 6z"/>... |
src/templates/fpv-news.js | jumpalottahigh/blog.georgi-yanev.com | import React from 'react'
import { graphql, Link } from 'gatsby'
import { Helmet } from 'react-helmet'
import Layout from '../components/structure/layout'
import FeedbackSection from '../components/FeedbackSection'
import AskAQuestion from '../components/AskAQuestion'
import SupportSection from '../components/SupportSe... |
client/modules/App/__tests__/Components/Footer.spec.js | Cathje/KLP | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import { Footer } from '../../components/Footer/Footer';
test('renders the footer properly', t => {
const wrapper = shallow(
<Footer />
);
t.is(wrapper.find('p').length, 2);
t.is(wrapper.find('p').first().text(), '© 2016 ... |
src/containers/skills.js | ereide/home_page_react | import React from 'react';
import { Row, Col, Image } from 'react-bootstrap';
import DetailedBox from './../components/detailedbox.js';
//importing images
import c_cpp from './../assets/c_cpp.jpg';
import csharp from './../assets/csharp.jpg';
import git from './../assets/git.png';
import html_css from './../assets/h... |
landing_mobx/src/employer/CandidateList.js | 1a2a3a4a/PONTUS | /**
* Created by tonyw on 2017-06-03.
*/
import React, { Component } from 'react';
import Avatar from 'material-ui/Avatar';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import People from 'material-ui/svg-icons/social/people'
import List from 'material-ui/List/List';
import ListItem from 'mater... |
public/js/cat_source/es6/components/modals/DQFCredentials.js | matecat/MateCat | import update from 'immutability-helper'
import React from 'react'
import TextField from '../common/TextField'
import * as RuleRunner from '../common/ruleRunner'
import * as FormRules from '../common/formRules'
import {getMatecatApiDomain} from '../../utils/getMatecatApiDomain'
import {
clearDqfCredentials as clearD... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/DefaultPropsInferred.js | jamesgpearce/flow | // @flow
import React from 'react';
class MyComponent extends React.Component {
static defaultProps = {};
props: Props;
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component {
static defaultProps = {};
... |
examples/universal/server/server.js | kevinold/redux | /* eslint-disable no-console, no-use-before-define */
import path from 'path';
import Express from 'express';
import qs from 'qs';
import webpack from 'webpack';
import webpackDevMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware from 'webpack-hot-middleware';
import webpackConfig from '../webpack.... |
app/static/src/performer/NewTestForm.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 Button from 'react-bootstrap/lib/Button';
import DateTimeField from 'react-bootstrap-datetimepicker/lib/DateTim... |
src/ListButton.js | PythEch/ruc-scheduler | import React, { Component } from 'react';
import { observer } from 'mobx-react';
import { observable, computed, action } from 'mobx';
import store from './Store';
import ReactDOM from 'react-dom';
import { TransitionMotion, spring, presets } from 'react-motion';
import { UnmountClosed } from 'react-collapse';
let glob... |
src/App.js | ashwinath/personal-website-2.0 | import React, { Component } from 'react';
import './App.css';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import SideBar from './Pages/SideBar';
import About from './Pages/About';
import Portfolio from './Pages/Portfolio';
import Experience from './Pages/Experience';
import LandingPage fr... |
demo/containers/buttons.js | nbonamy/react-native-app-components |
import React, { Component } from 'react';
import { StyleSheet, Alert, ScrollView, View, Text } from 'react-native';
import { theme, Button, SlideButton } from 'react-native-app-components';
export default class Buttons extends Component {
constructor(props) {
super(props);
}
render() {
return (
... |
DatePicker.js | WaffleStudios/react-native-json-form | import React from 'react';
import {
DatePickerAndroid,
DatePickerIOS,
Platform,
ScrollView,
Text,
TimePickerAndroid,
TouchableOpacity,
View
} from 'react-native';
import styles from './FormStyles';
export default class JSONForm extends React.Component {
static defaultProps = {
mode: "date"
}
... |
Week04-UseSiteTools/client/src/App.js | bmeansjd/ISIT320_means2017 | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welco... |
src/hav/apps/theme/src/mdx/components/index.js | whav/hav | import React from 'react';
import Media from "./media";
import Folder from "./folder";
import Wrapper from "./Wrapper";
const components = {
HAVMedia: (props) => <Media {...props} />,
HAVFolder: (props) => <Folder {...props} />,
Media: (props) => <Media {...props} />,
wrapper: (props) => <Wrapper {...props} /... |
src/containers/app/index.js | chuckharmston/testpilot-contribute | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { Route } from 'react-router';
import { ConnectedRouter } from 'react-router-redux';
import Footer from '../../components/footer';
import { HomeNav } from '../../components/header';
import ScrollToTop from '../../components/scroll-to-... |
packages/website/storybook/axis-story.js | uber-common/react-vis | /* eslint-env node */
import React from 'react';
import {storiesOf} from '@storybook/react';
import {withKnobs, number, select} from '@storybook/addon-knobs/react';
import {LineSeries, VerticalBarSeries, XAxis, YAxis} from 'react-vis';
import {generateLinearData, getTime, getWord} from './storybook-data.js';
import... |
src/components/Ending/Ending.js | goldylucks/adamgoldman.me | // @flow
import React from 'react'
import Link from '../Link'
import Avatar from '../Avatar'
type Props = {
nick?: string,
}
const Ending = ({ nick, ...restProps }: Props) => (
<section {...restProps} className='clearfix'>
<Link to='/' className='avatar-with-text'>
<Avatar alt={`Adam Goldman ${nick}`}... |
src/components/Authorized/AuthorizedRoute.js | ascrutae/sky-walking-ui | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
MyBlog/BaymaxBlogFrontEnd/modules/Collect.js | tyhtao1990/BaymaxHome | import React from 'react'
export default React.createClass({
render() {
return (
<div>
<Grid>
<Row className="show-grid">
<Col xs={2} md={4}>
<ControlLabel>Search data</ControlLabel>
<FormControl type="text" placeho... |
src/client/components/auth/Authenticated.js | josebalius/react-isomorphic-starter | import React from 'react';
import {connect} from 'react-redux';
import {Router} from 'react-router';
@connect(state => ({session: state.session}))
class Authenticated extends React.Component {
static contextTypes = {
router: React.PropTypes.object
};
constructor(props, context) {
super(props, context);
... |
assets/jqwidgets/demos/react/app/rangeselector/rangeselectorasafilter/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxRangeSelector from '../../../jqwidgets-react/react_jqxrangeselector.js';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
componentDidMount() {
// update filter on 'change' event.
... |
app/changelog.js | mvasilkov/mvasilkov.ovh | import React from 'react'
import Link from 'next/link'
import { date } from './functions'
const Line = ({ path, pubdate, title }) => (
<li>
<Link href={`/${path}`}><a>{title}</a></Link>
<span className="date"> {date(pubdate)}</span>
</li>
)
const Changelog = ({ changes, orderBy }) => (
<u... |
daily-frontend/src/components/DataTable/DataTable.js | zooyalove/dailynote | import React, { Component } from 'react';
import classNames from 'classnames';
import styles from './DataTable.scss';
import DataList from 'components/DataList';
import Pager from 'components/Pager';
const cx = classNames.bind(styles);
class DataTable extends Component {
constructor(props) {
super(props)... |
src/components/Navigation/Navigation.js | ACPK/react-starter-kit | /**
* 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 cx from 'classnames';... |
app/javascript/mastodon/components/avatar.js | kazh98/social.arnip.org | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from '../initial_state';
export default class Avatar extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isRequired,
size: PropType... |
app/src/containers/UserDetailsScreen.js | joshlevy89/the-book-thing | import React, { Component } from 'react';
import { connect } from 'react-redux';
import UserField from '../components/UserField';
import { retrieve_user_details } from '../actions'
require('../../styles/UserDetailsScreen.scss')
require('../../styles/index.scss')
class UserDetailsScreen extends Component {
compon... |
client/src/components/search/searchBar/SearchBar.js | jonathanihm/freeCodeCamp | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { createSelector } from 'reselect';
import { SearchBox } from 'react-instantsearch-dom';
import { HotKeys, ObserveKeys } from 'react-hotkeys';
import { ... |
packages/reactor-conference-app/src/schedule/ScheduleList.js | dbuhrman/extjs-reactor | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { List } from '@extjs/ext-react';
import { toggleFavorite } from './actions';
import { connect } from 'react-redux';
import days from '../util/days';
import { push } from 'react-router';
import { createTpl } from './EventTpl';
class S... |
src/components/Layout/ImageBlock/index.js | jmikrut/keen-2017 | import React from 'react';
import './ImageBlock.css';
const ImageBlock = (props) => {
const className = props.className ? `image-block ${props.className}` : 'image-block';
return (
<div className={className}>
{props.children}
</div>
);
}
export default ImageBlock;
|
src/js/components/icons/base/Workshop.js | odedre/grommet-final | /**
* @description Workshop SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @p... |
components/Main.js | dkfann/cinesythesia | import React from 'react';
const Main = (props) => {
return (
<div className="o-main-container">
{ props.children }
</div>
)
};
export default Main; |
aaf-enrollment/src/components/enrollment/method-authenticators/VoiceOTPMethod.js | MicroFocus/CX | import React from 'react';
import Authenticator from '../Authenticator';
import {generateFormChangeHandler} from '../../../utils/form-handler';
import TextField from '../../TextField';
import t from '../../../i18n/locale-keys';
class VoiceOTPMethod extends React.PureComponent {
constructor(props) {
super(p... |
geonode/contrib/monitoring/frontend/src/components/atoms/map/index.js | timlinux/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Datamap from 'datamaps';
import * as d3 from 'd3';
import styles from './styles';
import actions from './actions';
const mapStateToProps = (state) => ({
countryData: state.mapData.response,
interval: state... |
packages/website/src/components/content/Article.js | mucsi96/w3c-webdriver | import React from 'react';
import Markdown from 'react-markdown';
import Heading from './Heading';
import Link from './Link';
import Code from './Code';
import Image from './Image';
import InlineCode from './InlineCode';
import Emoji from './Emoji';
import Paragraph from './Paragraph';
import Contributors from './Contr... |
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbExampleLink.js | ben174/Semantic-UI-React | import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'
const BreadcrumbExampleLink = () => (
<Breadcrumb>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider />
<Breadcrumb.Section link>Store</Breadcrumb.Section>
<Breadcrumb.Divider icon='right angle' />
<Brea... |
js/components/inputgroup/underline.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, IconNB, Item, Input, Form } from 'native-base';
import { Actions } from 'react-native-rout... |
app/app.js | Frizi/amciu | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
/* eslint-disable import/no-unresolved */
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json';
import 'file?name=[name].[ext]!./.htaccess';... |
src/routes/register/index.js | koistya/react-starter-kit | /**
* 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 Register from './Registe... |
src/svg-icons/hardware/devices-other.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDevicesOther = (props) => (
<SvgIcon {...props}>
<path d="M3 6h18V4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V6zm10 6H9v1.78c-.61.55-1 1.33-1 2.22s.39 1.67 1 2.22V20h4v-1.78c.61-.55 1-1.34 1-2.22s-.39-1... |
app/javascript/mastodon/components/permalink.js | summoners-riftodon/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class Permalink extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
static propTypes = {
className: PropTypes.string,
href: PropTypes.string.isRequired,
to: PropTypes.string.isRequired,
... |
src/Messages.js | alaarmann/infracc | import React from 'react';
export default ({message, ...props}) => (
<div className="Messages" hidden={message === null}>
<span>
{message}
</span>
</div>
)
|
src/components/UserWidget.js | chriswitko/idiomatic-redux-app | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import * as actions from '../actions';
import { getCurrentUser } from '../reducers';
import TodoList from '../components/TodoList';
import FetchError from '../components/FetchError';
import { logi... |
src/components/_archive/_archive/ResultsListItem.js | mgoodenough/estimator | 'use strict';
/*
* Module Definition
*
*/
import React from 'react';
import { isEqual } from '../utils/index';
/*
* Class Definition
*
*/
class ResultsListItem extends React.Component {
constructor(props) {
super(props);
this.onClick = props.onClick.bind(null, props.idx);
}
/*
* component... |
src/shared/components/PortfolioPage.js | Grace951/grace951.github.io | import React from 'react';
import {Switch} from "react-router-dom";
import {RouteWithSubRoutes} from '../route/index';
function PortfolioPage({ routes }) {
return (
<div>
<Switch>
{routes.map((route, i) => (
<RouteWithSubRoutes key={route.path} {...route} />
))}
</Switch>
</div>
)... |
app/components/Github/UserProfile.js | joshuar500/repository-notes | import React from 'react';
class UserProfile extends React.Component {
render(){
console.log('BIO: ', this.props.bio);
return (
<div>
<h3>Profile</h3>
{this.props.bio.avatar_url && <li className="list-group-item"> <img src={this.props.bio.avatar_url} className="img-rounded img-respo... |
src/shared/components/ErrorModal.js | devteamreims/4me.react | // @flow
import React, { Component } from 'react';
import {
Card,
CardActions,
CardTitle,
CardText,
} from 'material-ui/Card';
const style = {
wrapper: {
width: '100%',
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
},
inside: {
flexGrow: 0,
... |
examples/with-scoped-stylesheets-and-postcss/pages/index.js | nahue/next.js | import React from 'react'
import Head from 'next/head'
import {stylesheet, classNames} from './styles.css'
export default () => (
<p className={classNames.paragraph}>
<Head><style dangerouslySetInnerHTML={{__html: stylesheet}} /></Head>
bazinga
</p>
)
|
packages/examples/src/knobs/index.js | diegomura/react-pdf | import React from 'react';
import { Document, Page, View, Text, StyleSheet } from '@react-pdf/renderer';
const styles = StyleSheet.create({
select: {
height: '9%',
alignItems: 'center',
flexDirection: 'row',
paddingHorizontal: '30px',
},
bar: {
flexGrow: 1,
height: '10px',
backgroundC... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | basquith16/EtsyClone | 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/containers/ReportGenerator.js | blaqbern/report-generator | import React from 'react'
import { connect } from 'react-redux'
import { fetchFolders } from '../redux/modules/folders'
import Folders from '../components/Folders'
import Spinner from '../components/Spinner'
function ReportGenerator({
children,
fetchError,
fetchingFolders,
handleFetchClick,
activeFolders,
})... |
packages/material-ui-icons/src/BatteryCharging30.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v9.17h2L13 7v5.5h2l-1.07 2H17V5.33C17 4.6 16.4 4 15.67 4z" /><path d="M11 20v-5.5H7v6.17C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.3... |
client/src/index.js | hellstad/hjem | import { Provider } from 'react-redux'
import ReactDOM from 'react-dom'
import React from 'react'
import AppRouter from 'views/AppRouter'
import store from 'store'
import './styles/index.scss'
import './index.html'
ReactDOM.render(
<Provider store={store}>
<AppRouter />
</Provider>,
document.getE... |
src/components/custom-components/Dialogs/ToPlayListDialog/ToPlayListDialog.js | ArtyomVolkov/music-search | import React from 'react';
// MU components
import { Dialog, Tabs, Tab, FlatButton, Checkbox, Avatar } from 'material-ui';
import ActionDone from 'material-ui/svg-icons/action/done';
import ActionInput from 'material-ui/svg-icons/action/input';
import { List, ListItem } from 'material-ui/List';
// Components
import Inc... |
src/Table/components/TableRow.js | Pearson-Higher-Ed/compounds | import React from 'react';
import PropTypes from 'prop-types';
const TableRow = ({ children }) => {
const selectedRow = () => {
const tables = document.querySelectorAll('.pe-table--selectable');
for (let i=0; i<tables.length; i++) {
let table = tables[i];
let tbody = table.getElementsByTagName('... |
app/javascript/flavours/glitch/components/autosuggest_input.js | im-in-space/mastodon | import React from 'react';
import AutosuggestAccountContainer from 'flavours/glitch/features/compose/containers/autosuggest_account_container';
import AutosuggestEmoji from './autosuggest_emoji';
import AutosuggestHashtag from './autosuggest_hashtag';
import ImmutablePropTypes from 'react-immutable-proptypes';
import P... |
benchmarks/src/implementations/react-fela/View.js | rofrischmann/fela | /* eslint-disable react/prop-types */
import React from 'react'
import { useFela } from 'react-fela'
const style = () => ({
alignItems: 'stretch',
borderWidth: 0,
borderStyle: 'solid',
boxSizing: 'border-box',
display: 'flex',
flexBasis: 'auto',
flexDirection: 'column',
flexShrink: 0,
margin: 0,
pa... |
app/components/resources/owiLinks.js | nypl-registry/browse | import React from 'react'
import { Link } from 'react-router'
const OWILinks = React.createClass({
render () {
// var id = this.props.id
var related = this.props.item.getRelated('owi').map((item) => {
var url = `/resources/${item.id}`
if (item.dateStart && item.title) {
return <Link to={u... |
example/examples/LiteMapView.js | azt3k/react-native-maps | import React from 'react';
import {
StyleSheet,
Dimensions,
ScrollView,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LATITUDE_DELTA = 0.0922;... |
webapp/src/app/planning/containers/PlanContainer.js | cpollet/itinerants | import React from 'react';
import {connect} from 'react-redux';
import moment from 'moment';
import {push} from 'react-router-redux';
import Planning from '../screens/Planning';
import {fetchPlanProposal, savePlan, toggleSelection} from '../actions';
import Spinner from '../../../widgets/Spinner';
class PlanContainer ... |
src/components/Page/Page.js | bmatthews/haze-lea | /**
* 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 PropTypes from 'prop-... |
src/Parser/Monk/Brewmaster/CHANGELOG.js | hasseboulen/WoWAnalyzer | import React from 'react';
import { WOPR, emallson } from 'CONTRIBUTORS';
import Wrapper from 'common/Wrapper';
import ITEMS from 'common/ITEMS';
import ItemLink from 'common/ItemLink';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
export default [
{
date: new Date('2018-01-29'),... |
src/client.js | alexanderchan/react-redux-universal-hot-example | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import Location from 'react-router/lib/Location';
import queryString from 'query-string';
import cre... |
src/libraries/notResolved.js | blueberryapps/react-bluekit | import React from 'react';
export default (data) => () => (<div>Unable to resolve: {JSON.stringify(data)}</div>)
|
client/modals/UploadModal.js | spectralsun/reactgur | import EventEmitter from 'events';
import React from 'react';
import xhttp from 'xhttp';
import {Modal, Button, Input, Alert} from 'react-bootstrap';
import ee from './../Emitter.js';
import ModalComponent from './../components/ModalComponent.js';
import UploadComponent from './../components/UploadComponent.js';
exp... |
actor-apps/app-web/src/app/utils/require-auth.js | ganquan0910/actor-platform | import React from 'react';
import LoginStore from 'stores/LoginStore';
export default (Component) => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/auth', {}, {'nextPath': transition.path});
}... |
src/svg-icons/notification/wc.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationWc = (props) => (
<SvgIcon {...props}>
<path d="M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22h-4zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6... |
example/components/sample.js | chetstone/react-native-palette | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Alert,
Button,
ImageBackground,
NativeModules,
Platform,
StyleSheet,
Text,
View
} from 'react-native';
var createReactClass = require('create-react-class');
import... |
app/routes.js | firewenda/testwebsite | import React from 'react';
import {Route} from 'react-router';
import App from './components/App';
import Home from './components/Home';
import Stats from './components/Stats';
import Character from './components/Character';
import CharacterList from './components/CharacterList';
import AddCharacter from './components/... |
packages/reactor-kitchensink/src/examples/Charts/Area/StackedArea/StackedArea.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Container } from '@extjs/ext-react';
import { Cartesian } from '@extjs/ext-react-charts';
import ChartToolbar from '../../ChartToolbar';
export default class StackedAreaChartExample extends Component {
constructor(){
super();
}
store = Ext.create... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.