path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/index.js | tech-dojo/React-Task-Manager | import React from 'react';
import ReactDOM from 'react-dom';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import ManagerView from './component/manager/managerView.js'
import ProgrammerView from './component/programmer/programmerView'
import ProgrammerTask from './component/programmer/programmerT... |
client/extensions/woocommerce/app/order/order-fulfillment/index.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { first, includes } from 'lodash';
import Gridicon from 'gridicons'... |
packages/wix-style-react/src/CarouselWIP/Slide/Slide.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { DATA_HOOKS } from '../constants';
const Slide = ({
dataHook,
className,
children,
image,
width,
gutter,
imagePosition,
imageFit,
}) => (
<div
data-hook={dataHook}
className={className}
style={{
flex: '0 0 auto',... |
src/FilePicker/FilePicker.driver.js | skyiea/wix-style-react | import React from 'react';
import ReactDOM from 'react-dom';
const filePickerDriverFactory = ({element, wrapper, component}) => {
const error = element.querySelector(`[data-hook=filePicker-error]`);
const input = element.querySelector(`input`);
const subLabel = element.querySelector(`[data-hook="sub-label"]`);
... |
client/main.js | ahmetkasif/xox | import { Meteor } from 'meteor/meteor';
import React from 'react';
import { render } from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import Noty from 'noty';
import App from '../imports/ui/App.jsx';
import '../imports/startup/accounts-config.js';
Meteor.startup(() => {
injectTapEventPlu... |
src/Hello.js | ChineseCubes/react-vtt | import React from 'react';
export const hello = 'hello, world';
export function Hello() {
return (
<span>{hello}</span>
);
}
|
src/components/shared/screen-description.js | gabrielecker/animapp | import React, { Component } from 'react';
import { Container } from 'semantic-ui-react';
export default class ScreenDescription extends Component {
render() {
return (
<Container text>
{this.props.children}
</Container>
);
}
}
ScreenDescription.propTypes = {
children: React.PropType... |
app/javascript/mastodon/features/ui/components/column_header.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
export default class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
... |
common/components/admin/CourseTableRow.js | ebertmi/webbox | import React from 'react';
import { Link } from 'react-router';
import { Time } from '../Time';
/**
* Renders a course row
*/
export function CourseTableRow (props) {
const courseDetailPath = `/admin/course/${props.data.id}`;
const creatorDetailPath = `/admin/user/${props.data._creatorId}`;
const courseViewPat... |
src/parser/monk/brewmaster/modules/features/DamageTakenTable.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import DamageTakenTableComponent, { MITIGATED_MAGICAL, MITIGATED_PHYSICAL, MITIGATED_UNKNOWN } from 'interface/others/DamageTakenTable';
import Panel from 'interface/others/Panel';
import SPELLS from 'common/SPELLS';
import SPECS from 'game/SPECS';... |
src/js/app/components/svgs/add.js | ericf89/survey | import React from 'react';
export default () => (
<svg fill="#FFFFFF" height="36" viewBox="0 0 24 24" width="36" xmlns="http://www.w3.org/2000/svg">
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
<path d="M0 0h24v24H0z" fill="none"/>
</svg>
);
|
src/components/ListView.js | aryalprakash/backlect-design | import 'rc-dialog/assets/index.css';
import React, { Component } from 'react';
import Header from './Header'
import Dialog from 'rc-dialog';
import NewDialog from "./NewDialog";
export default class ListElements extends Component {
constructor(){
super()
this.state = {
visible: false,
... |
app/components/HowDoes.js | gidich/votrient-kiosk | import React, { Component } from 'react';
import { Link } from 'react-router';
import styles from './HowDoes.css';
export default class HowDoes extends Component {
render() {
return (
<div className={styles.container}>
<Link to="/" className={styles.home}></Link>
<Link to="/HowDoes/2" c... |
frontend/src/components/login/loginForm.js | unicef/un-partner-portal | import React from 'react';
import { reduxForm, SubmissionError, clearSubmitErrors } from 'redux-form';
import PropTypes from 'prop-types';
import Button from 'material-ui/Button';
import { withStyles } from 'material-ui/styles';
import Grid from 'material-ui/Grid';
import Snackbar from 'material-ui/Snackbar';
import Ty... |
src/templates/page-template.js | ivanminutillo/faircoopWebSite | import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import PageTemplateDetails from '../components/PageTemplateDetails'
import Header from '../components/Header'
import Footer from '../components/Footer'
class PageTemplate extends React.Component {
render () {
const { t... |
front/src/components/Ebets.js | ethbets/ebets | /* Copyright (C) 2017 ethbets
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
import React, { Component } from 'react';
import Paginate from 'react-paginate';
import EbetsJson from 'build/contracts/Ebets.json';
imp... |
src/DropdownButton.js | xiaoking/react-bootstrap | import React from 'react';
import BootstrapMixin from './BootstrapMixin';
import Dropdown from './Dropdown';
import NavDropdown from './NavDropdown';
import CustomPropTypes from './utils/CustomPropTypes';
import deprecationWarning from './utils/deprecationWarning';
import omit from 'lodash/object/omit';
class Dropdown... |
CompositeUi/src/views/form/Register.js | kreta/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import React from 'react';
import {connec... |
wp-content/plugins/liveblog/src/react/Editor/blocks/CreateBlockHOC.js | MinnPost/minnpost-wordpress | /* eslint-disable react/display-name */
/* eslint-disable react/prop-types */
import React, { Component } from 'react';
import { EditorState } from 'draft-js';
import removeBlock from '../modifiers/removeBlock';
const CreateBlock = (Block, editorState, onChange) => class extends Component {
constructor() {
supe... |
src/components/Header/Refresher/index.js | RayBenefield/halo-forge | import React from 'react';
import equip from './equip';
const Refresher = ({ refresh }) => (
<svg
onClick={refresh}
style={{
display: 'inline-block',
color: 'rgb(255, 255, 255)',
fill: 'currentcolor',
height: '24px',
width: '24px',
... |
src/views/inlet/Login.js | anysome/objective | /**
* Created by Layman <anysome@gmail.com> (http://github.com/anysome) on 2016/11/9.
*/
import React from 'react';
import {View, StyleSheet, Image, Text, Dimensions, TouchableOpacity, Keyboard, LayoutAnimation} from 'react-native';
import {analytics, styles, colors, airloy, api, toast, L, hang} from '../../app';
imp... |
src/components/Drawer/MyDrawerComponent.js | trixyrabbit/Exile | import React from 'react'
import './Drawer.scss'
import { IndexLink, Link } from 'react-router'
import Drawer from 'material-ui/Drawer'
import MenuItem from 'material-ui/MenuItem'
import Subheader from 'material-ui/Subheader'
let leftNavTop = {
fontSize: '24px',
color: 'rgb(255, 255, 255)',
lineHeight: '64px',
... |
src/pages/BranchQueue.js | branch-bookkeeper/pina | import classNames from 'classnames';
import {
compose,
map,
prop,
contains,
} from 'ramda';
import ease from 'ease-component';
import React, { Component } from 'react';
import { withRouter } from 'react-router';
import PropTypes from 'prop-types';
import { setPropTypes, defaultProps, pure } from 'recom... |
src/server.js | NicholasAzar/ntensitycustoms | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
const server = global.... |
blueocean-material-icons/src/js/components/svg-icons/image/filter-tilt-shift.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageFilterTiltShift = (props) => (
<SvgIcon {...props}>
<path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1.11-.86 2.44-1.44 3.9-1.62zm7.32.19C16.84 3.05 15.01 2.25 13 2.05v2.02c1.46.18 2.79.76 3.9 1.62l1.42-1.43zM19.93 11h2.02c-.2-2.0... |
mdbreact/components/FreeBird.js | ryanwashburne/react-skeleton | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
class FreeBird extends Component {
render() {
const {
className,
tag: Tag,
...attributes
} = this.props;
const classes = classNames(
'container free-bird',
... |
src/components/about/about.js | javflores/dtl-react-training | import React from 'react';
class About extends React.Component {
render(){
return(
<div className="jumbotron">
<h1>We are Broadbandchoices</h1>
<h2>The best broadband comparison tool in the market.</h2>
<p>We are Damo, Ranj, Rob, Alex, Ben, Walshy... |
src/react/LogMonitorEntryAction.js | taylorhakes/redux-devtools | import React from 'react';
import JSONTree from './JSONTree';
const styles = {
actionBar: {
paddingTop: 8,
paddingBottom: 7,
paddingLeft: 16
},
payload: {
margin: 0,
overflow: 'auto'
}
};
export default class LogMonitorAction extends React.Component {
renderPayload(payload) {
return... |
src/components/BookPage.js | nicolasletoublon/react-dnd | import React from 'react';
import {connect} from 'react-redux';
import * as bookActions from '../actions/bookActions';
class Book extends React.Component {
constructor(props) {
super(props);
}
submitBook(input){
this.props.createBook(input);
}
render(){
let titleInput;
return(
<div>
... |
src/client/index.android.js | mucsi96/react-native-lambda-starter | import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import App from './components/App';
export default class reactNativeLambdaStarter extends Component {
render() {
return (
<App/>
);
}
}
AppRegistry.registerComponent('reactNativeLambdaStarter', () => reactNativeLam... |
RN/RNFluxDemo/components/Error.js | puyanLiu/LPYFramework | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Animated,
Dimensions
} from 'react-native';
import {
Actions
} from 'react-native-router-flux';
import Button from "react-native-button";
var {... |
docs/src/app/components/pages/components/DatePicker/ExampleDisableDates.js | spiermar/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
function disableWeekends(date) {
return date.getDay() === 0 || date.getDay() === 6;
}
function disableRandomDates() {
return Math.random() > 0.7;
}
/**
* `DatePicker` can disable specific dates based on the return value of a callback.
*... |
js/components/inputgroup/index.js | yasster/Divide-react-native |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Button, Icon, InputGroup, Input, Textarea } from 'native-base';
import { openDrawer } from '../../actions/drawer';
import styles from './styles';
class NHInputGroup extends Component { // esl... |
node_modules/antd/es/transfer/index.js | prodigalyijun/demo-by-antd | import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray';
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-ru... |
src/index.js | unikorp/king | import React from 'react';
import { render } from 'react-dom';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import Root from './containers/Root';
import configureStore from './store/configureStore';
const store = configureStore();
const history = syncHistory... |
routes/assets-html.js | joeybaker/rachelandjoey | import path from 'path'
import fs from 'fs'
import ReactRoutes from '../components/_routes/'
import ReactData from '../components/_routes/example/data.js'
import versions from '../versions.json'
import React from 'react'
import ReactRouter from 'react-router'
const expiresIn = 1000 * 60 * 60 * 24
const html = fs.read... |
src/rocks/debugger-tab/index.js | animachine/animachine | import React from 'react'
import DebuggerTab from './DebuggerTab'
BETON.require('workspace', init)
function init(workspace) {
// workspace.setTabContent('debugger', () => <DebuggerTab/>)
}
|
src/svg-icons/editor/border-clear.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderClear = (props) => (
<SvgIcon {...props}>
<path d="M7 5h2V3H7v2zm0 8h2v-2H7v2zm0 8h2v-2H7v2zm4-4h2v-2h-2v2zm0 4h2v-2h-2v2zm-8 0h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2V7H3v2zm0-4h2V3H3v2zm8 8h2v... |
docs/src/pages/components/tables/BasicTable.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableContainer from '@material-ui/core/TableContainer';
import TableHead from '@... |
client/src/__mocks__/monacoEditorMock.js | pahosler/freecodecamp | /* eslint-disable */
import React from 'react';
export default props => {
const { width = '100%', height = '100%' } = props;
const fixedWidth =
width.toString().indexOf('%') !== -1 ? width : `${width}px`;
const fixedHeight =
height.toString().indexOf('%') !== -1 ? height : `${height}px`;
const style = ... |
src/components/dashboard/ClassList.js | caoquan95/colorme-manage | import React from 'react';
import Switch from 'react-bootstrap-switch';
const ClassList = ({classes}) => {
return (
<div className="panel-body">
<div className="table-responsive">
<table className="table table-bordered table-hover table-striped">
<thead>
<tr>
<th/>
... |
src/components/NotFound.js | unikorp/king | import React from 'react';
const NotFound = () => (
<p>
Sorry, we cannot found this page.
</p>
);
export default NotFound;
|
src/app/components/P/index.js | nhardy/web-scaffold | // @flow
/* eslint-disable react/prop-types */
import React, { Component } from 'react';
import type { Node } from 'react';
import cx from 'classnames';
import { isScrolledIntoView } from 'app/lib/dom';
import throttle from 'app/lib/throttle';
import styles from './styles.styl';
type Props = {
className?: string,... |
react/features/base/react/components/web/NavigateSectionListItem.js | gpolitis/jitsi-meet | // @flow
import React, { Component } from 'react';
import type { Item } from '../../Types';
import Container from './Container';
import Text from './Text';
/**
* The type of the React {@code Component} props of
* {@link NavigateSectionListItem}.
*/
type Props = {
/**
* Function to be invoked when an it... |
app/components/Report/ChartModal.js | Bullseyed/Bullseye | import React from 'react';
import { Row, Col, Modal } from 'react-materialize';
import Charts from './Charts';
import Piechart from './PieChart';
import Bargraph from './BarGraph';
const ChartModal = ({demoData}) => {
return (
<Modal
header="Statistics"
trigger={
<div>
<Charts />
</div>
}
s... |
examples/basic/simple_usage/index.js | reactjs/react-modal | import React, { Component } from 'react';
import Modal from 'react-modal';
import MyModal from './modal';
const MODAL_A = 'modal_a';
const MODAL_B = 'modal_b';
const DEFAULT_TITLE = 'Default title';
class SimpleUsage extends Component {
constructor(props) {
super(props);
this.state = {
title1: DEFAUL... |
app/jsx/courses/HomePagePromptContainer.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
src/browser/components/Home/Home.js | 2rajpx/gitux | import React from 'react'
export default props => (
<p>
Home
</p>
)
|
fixtures/react_native_windows_vnext/src/host.js | callstack-io/haul | import React from 'react';
import { AppRegistry, View, Text, Linking } from 'react-native';
import { createAppContainer, createBottomTabNavigator, NavigationActions } from 'react-navigation';
import { ApolloClient } from 'apollo-client';
import { ApolloProvider } from 'react-apollo';
import { createHttpLink } from 'apo... |
src/block.js | awkward/react-simple-masonry | import React from 'react'
export default ({ width, height, x, y, children }) => {
const style = {
width,
height,
transform: `translate3d(${x}px, ${y}px, 0)`,
position: 'absolute',
top: 0,
left: 0,
border: `1px solid`,
transition: `transform .2s`
}
return (
<div style={style}... |
examples/shared-root/app.js | freeyiyi1993/react-router | import React from 'react';
import { history } from 'react-router/lib/HashHistory';
import { Router, Route, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<p>
This illustrates how routes can share UI w/o sharing the url,
when routes have no pa... |
src/containers/main/product-list-container.js | menthena/project-a | import React from 'react';
import { connect } from 'react-redux';
import Query from '../../components/query';
import Filter from '../../components/filter';
import Sorter from '../../components/sorter';
import './styles/product-list-container.css';
import { ProductList } from '../../components/generic-list';
import { se... |
src/pages/IndexPage.js | janimattiellonen/fgr | import React from 'react';
import { Link } from 'react-router';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PersonList from '../components/PersonList';
import styles from './IndexPage.pcss';
const IndexPage = props => {
const { persons, deletePerson } = props;
return (
<section className... |
www/src/templates/community.js | yangshun/react | /**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
'use strict';
import MarkdownPage from 'components/MarkdownPage';
import PropTypes from 'prop-types';
import Re... |
react/features/invite/components/dial-in-summary/native/DialInSummary.js | bgrozev/jitsi-meet | // @flow
import React, { Component } from 'react';
import { Linking, View } from 'react-native';
import { WebView } from 'react-native-webview';
import { type Dispatch } from 'redux';
import { openDialog } from '../../../../base/dialog';
import { translate } from '../../../../base/i18n';
import { JitsiModal, setActiv... |
docs/src/app/components/pages/components/Dialog/ExampleCustomWidth.js | ruifortes/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
const customContentStyle = {
width: '100%',
maxWidth: 'none',
};
/**
* The dialog width has been set to occupy the full width of browser throug... |
docs/src/app/components/pages/components/DatePicker/ExampleControlled.js | ichiohta/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
/**
* `DatePicker` can be implemented as a controlled input,
* where `value` is handled by state in the parent component.
*/
export default class DatePickerExampleControlled extends React.Component {
constructor(props) {
super(props)... |
src/App.js | Florenz23/wifi_signals | import React, { Component } from 'react';
import Graph from './scripts/components/graph'
export default class App extends React.Component {
state = { dataSetIndex: 0 , }
static defaultProps = {views: [["day"],["simpleDay"],["Macs"]]}
selectDataset(event) {
this.setState({dataSetIndex: event.target.value});
... |
app/javascript/mastodon/components/status_action_bar.js | ashfurrow/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import DropdownMenuContainer from '../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from ... |
src/sentry/static/sentry/app/icons/icon-user.js | gencer/sentry | import React from 'react';
import Icon from 'react-icon-base';
function IconUser(props) {
return (
<Icon viewBox="0 0 24 24" {...props}>
<g fill="currentColor">
<path d="M4.57694084,15.0573642 C3.09845147,15.2679649 2,16.5339712 2,18.0273845 L2,20.5 C2,21.3284271 2.67157288,22 3.5,22 L20.5,22 C21.3... |
src/routes/error/index.js | muidea/magicSite | import React from 'react'
import { Icon } from 'antd'
import styles from './index.less'
const Error = () => (<div className="content-inner">
<div className={styles.error}>
<Icon type="frown-o" />
<h1>404 Not Found</h1>
</div>
</div>)
export default Error
|
docs/src/app/components/pages/components/RefreshIndicator/Page.js | pomerantsev/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import refreshIndicatorReadmeText from './README';
import RefreshIndicatorExampl... |
app/App.js | calebgregory/react-app | 'use strict';
import React from 'react';
import Router from 'react-router';
import ReactDOM from 'react-dom';
import routes from './config/routes';
ReactDOM.render((
<Router>
{routes}
</Router>
), document.getElementById('app'));
|
client-src/components/pager/PagerButtonLast.js | minimus/final-task | import React from 'react'
import { NavLink } from 'react-router-dom'
import propTypes from 'prop-types'
export default function PagerButtonLast({ base, category, page }) {
return (
<NavLink
to={`/${base}/${category}/${page}`}
activeClassName="active"
activeStyle={{ color: '#be3131' }}
>
... |
node_modules/react-router/es/Router.js | nikhil-ahuja/Express-React | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
jenkins-design-language/src/js/components/material-ui/svg-icons/content/reply-all.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const 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.displayName = 'ContentReplyAll';
ContentReplyAll.muiName = 'Svg... |
src/docs/components/animate/AnimateSlideExample.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Animate from 'grommet/components/Animate';
import Box from 'grommet/components/Box';
import Button from 'grommet/components/Button';
import Paragraph from 'grommet/components/Paragraph';
import Example... |
src/store/shared/app.js | cezerin/cezerin | import React from 'react';
import { Route } from 'react-router';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { animateScroll } from 'react-scroll';
import IndexContainer from './containers/index';
import SharedContainer from './containers/shared';
import CategoryContainer fro... |
app/templates/src/app.js | jermspeaks/generator-react-vertical | import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import FastClick from 'fastclick';
import Dispatcher from './core/Dispatcher';
import getRoutes from './routes'
import Location from './core/Location';
import ActionTypes from './common/constants/ActionTypes';
import { addEventListene... |
src/svg-icons/av/pause.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPause = (props) => (
<SvgIcon {...props}>
<path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/>
</SvgIcon>
);
AvPause = pure(AvPause);
AvPause.displayName = 'AvPause';
AvPause.muiName = 'SvgIcon';
export default AvP... |
src/svg-icons/communication/call-end.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallEnd = (props) => (
<SvgIcon {...props}>
<path d="M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .39-.23.74-.56.9-.98.49-1.87 1.12-2.66 1.85-.18.18-.43.28-.7.28-.28 0-.53-.11-.71-.29L.29 13.08c-.18-.17-.29-.... |
features/common/components/searchInput.js | zymokey/mission-park | import React from 'react';
import { connect } from 'react-redux';
import { searchInput } from '../actions';
class SearchInput extends React.Component {
constructor(props){
super(props);
this.state = {
search: ''
}
}
handleInputChange(event){
const { model, attr, parentId } = this.props;
const targe... |
apps/wmb/priv/www/static/js/src/containers/filters/index.js | black13ua/wmb | import React from 'react';
import FiltersMenuView from '../../view/filters/main';
// import RandomButtonContainer from './random-button';
import FiltersContainer from './filters/main-filter';
const RightSidebarContainer = () =>
<FiltersMenuView>
{/* <RandomButtonContainer />*/}
<FiltersContainer ... |
definitions/npm/styled-components_v2.x.x/flow_v0.42.x-v0.52.x/test_styled-components_native_v2.x.x.js | orlandoc01/flow-typed | // @flow
import nativeStyled, {
ThemeProvider as NativeThemeProvider,
withTheme as nativeWithTheme,
keyframes as nativeKeyframes,
} from 'styled-components/native'
import React from 'react'
import type {
Theme as NativeTheme,
Interpolation as NativeInterpolation,
// Temporary
ReactComponentFunctional as ... |
src/interface/report/Results/Character/PlayerInfo/Gear.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import Icon from 'common/Icon';
import ItemLink from 'common/ItemLink';
import ITEM_QUALITIES from 'game/ITEM_QUALITIES';
const EPIC_ITEMS_ILVL = 340;
class Gear extends React.PureComponent {
static propTypes = {
gear: PropTypes.array.isRequired,
... |
src/parser/druid/guardian/modules/features/FrenziedRegenGoEProcs.js | FaideWW/WoWAnalyzer | import React from 'react';
import { formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import GuardianOfElune from './GuardianO... |
lib/Highlighter/stories/Highlighter.stories.js | folio-org/stripes-components | import React from 'react';
import { storiesOf } from '@storybook/react';
import withReadme from 'storybook-readme/with-readme';
import readme from '../readme.md';
import BasicUsage from './BasicUsage';
storiesOf('Highlighter', module)
.addDecorator(withReadme(readme))
.add('Basic Usage', () => <BasicUsage />);
|
src/modules/keywords/routes/index.js | CtrHellenicStudies/Commentary | import React from 'react';
import { Route } from 'react-router';
import PrivateRoute from '../../../routes/PrivateRoute';
import EditKeywordLayout from '../layouts/EditKeywordLayout';
import KeywordPage from '../components/KeywordPage';
import KeywordDetailContainer from '../containers/KeywordDetailContainer';
const... |
app/javascript/mastodon/components/relative_timestamp.js | primenumber/mastodon | import React from 'react';
import { injectIntl, defineMessages } from 'react-intl';
import PropTypes from 'prop-types';
const messages = defineMessages({
today: { id: 'relative_time.today', defaultMessage: 'today' },
just_now: { id: 'relative_time.just_now', defaultMessage: 'now' },
seconds: { id: 'relative_time... |
src/svg-icons/action/event.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionEvent = (props) => (
<SvgIcon {...props}>
<path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/>
</SvgIcon>
... |
fields/types/relationship/RelationshipField.js | helloworld3q3q/keystone | import async from 'async';
import Field from '../Field';
import { listsByKey } from '../../../admin/client/utils/lists';
import React from 'react';
import Select from 'react-select';
import xhr from 'xhr';
import { Button, InputGroup } from 'elemental';
import _ from 'lodash';
function compareValues (current, next) {
... |
css-modules-demo/demo01/index.js | zhangjunhd/react-examples | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
ReactDOM.render(
<App/>,
document.body.appendChild(document.createElement('div'))
);
|
packages/react/components/block.js | AdrianV/Framework7 | import React from 'react';
import Utils from '../utils/utils';
import Mixins from '../utils/mixins';
import __reactComponentEl from '../runtime-helpers/react-component-el.js';
import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js';
import __reactComponentSlots from '../runtime-... |
src/native/todos/Todos.js | skallet/este | // @flow
import type { State, Todo } from '../../common/types';
import Checkbox from './Checkbox';
import Footer from './Footer';
import React from 'react';
import todosMessages from '../../common/todos/todosMessages';
import { Box, Text, TextInput } from '../../common/components';
import { FormattedMessage } from 'rea... |
src/components/Start/Start.js | foglerek/yn-mafia | import React from 'react'
import { IndexLink, Link } from 'react-router'
// import classes from './Start.scss'
import { FormGroup, FormControl, ControlLabel, ButtonToolbar, Button } from 'react-bootstrap';
import { connect } from 'react-redux';
import { addUser } from '../../redux/modules/UserActions';
import { bindAct... |
app/components/Header/index.js | gihrig/react-boilerplate | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import Banner from './banner.jpg';
import messages from './messages';
class Header extends React.Component { // eslint-disable-l... |
src/svg-icons/communication/stay-current-landscape.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStayCurrentLandscape = (props) => (
<SvgIcon {...props}>
<path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/>
</SvgIcon>
);
Communicat... |
src/svg-icons/image/filter-tilt-shift.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterTiltShift = (props) => (
<SvgIcon {...props}>
<path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1.11-.86 2.44-1.44 3.9-1.62zm7.32.19C16.84 3.05 15.01 2.25 13 2.05v2.02c1.46.18 2.79.76 3.9 1.62... |
web/src/viewer/DateLabel.js | bolddp/pixerva | import React, { Component } from 'react';
export default class DateLabel extends Component {
toDate(timestamp) {
return new Date(timestamp * 1000).toISOString().substring(0,10);
}
render() {
return (
this.props.dateTaken ? (
<label id="imageDate" style={{ fontSize: '20px', float: 'right' }... |
packages/showcase/axes/custom-axes-orientation.js | uber/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
app/src/index.js | grantrules/bikeindustryjobs | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/common/components/Routes.js | suttonj/topshelf | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './App';
import LoginPage from '../../pages/login/page';
import HomePage from '../../pages/home/page';
import TopicPage from '../../pages/topic/page';
import BookListPage from '../../pages/booklist/page';
export default (
<R... |
node_modules/semantic-ui-react/src/views/Item/ItemImage.js | mowbell/clickdelivery-fed-test | import React from 'react'
import {
createShorthandFactory,
getUnhandledProps,
META,
} from '../../lib'
import Image from '../../elements/Image'
/**
* An item can contain an image.
*/
function ItemImage(props) {
const { size } = props
const rest = getUnhandledProps(ItemImage, props)
return <Image {...re... |
analysis/warriorarms/src/modules/core/Execute/EarlyDotRefresh.js | anom0ly/WoWAnalyzer | import { t } from '@lingui/macro';
import { formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import { SpellLink } from 'interface';
import React from 'react';
import EarlyDotRefreshesCore from './EarlyDotRefreshes';
const MINOR_THRESHOLD = 0.9;
const AVERAGE_THRESHOLD = 0.8;
const MAJOR_TH... |
src/pages/organize/list.js | yiweimatou/admin-antd | import React, { Component } from 'react';
import { Table, message, Button } from 'antd'
import { Link } from 'react-router'
import { info, list } from 'services/organize'
import SearchInput from '../../components/SearchInput'
class OrganizeList extends Component {
constructor(props) {
super(props)
... |
src/client/js/components/App.js | dstaver/greedy-alligator | import React, { Component } from 'react';
import Header from '../containers/Header';
export default class App extends Component {
render() {
return (
<div>
<Header />
{this.props.children}
</div>
);
}
}
|
lib/codemod/src/transforms/__testfixtures__/storiesof-to-csf/story-parameters.input.js | storybooks/react-storybook | /* eslint-disable */
import React from 'react';
import Button from './Button';
import { storiesOf } from '@storybook/react';
storiesOf('Button', module)
.add('with story parameters', () => <Button label="The Button" />, {
header: false,
inline: true,
})
.add('foo', () => <Button label="Foo" />, {
ba... |
app/src/chart/chart.js | tmlewallen/PongPing | import React from 'react';
import 'whatwg-fetch';
import d3 from './d3';
import moment from 'moment';
import * as _ from 'lodash';
export default class Chart extends React.Component {
constructor() {
super();
this.state = {
data: [],
maxPoints : 1000,
pollPeriod ... |
src/js/components/icons/base/Multiple.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/Components/Header/index.js | gabriel-lopez-lopez/gll-billin-code-challenge | /**
* Componente cabecera principal de navegación de la aplicación
*
*/
import React, { Component } from 'react';
import { Link, withRouter } from 'react-router-dom';
import { connect } from 'react-redux';
// Logo
import image from '../../assets/images/logo-billin.png';
// Estilos personalizados
import './navbar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.