path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
examples/src/components/UsersField.js | jgautsch/react-select | import GravatarOption from './CustomOption';
import GravatarValue from './CustomSingleValue';
import React from 'react';
import Select from 'react-select';
const USERS = require('../data/users');
var UsersField = React.createClass({
propTypes: {
hint: React.PropTypes.string,
label: React.PropTypes.string,
},
r... |
app/__mocks__/react-navigation.js | manosim/react-native-base | import React from 'react'; // eslint-disable-line no-unused-vars
import { View } from 'react-native';
class AppNavigator extends React.Component {
render() {
return <View>AppNavigator</View>;
}
}
AppNavigator.router = {
getStateForAction: jest.fn(() => ({})),
getActionForPathAndParams: jest.fn(() => ({}))... |
tmp/test/test_helper.js | youdeshi/single-page-app-best-practice-client | import React from 'react';
import jsdom from 'jsdom';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import { shallow, mount } from 'enzyme';
import reducers from '../src/reducers';
if (typeof document === 'undefined') {
global.document = jsdom.jsdom('<!doctype html><html><body></body><... |
admin/client/components/ListFiltersAddForm.js | codevlabs/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import CurrentListStore from '../stores/CurrentListStore';
import filters from '../filters';
import Popout from './Popout';
var ListFiltersAddForm = React.createClass({
propTypes: {
field: React.PropTypes.object.isRequired,
maxHeight: React.PropTypes.n... |
src/client/app.js | black-black-cat/simple-react-app | import React from 'react';
import ReactDOM from 'react-dom';
// import { createStore } from 'redux';
// import { combineReducers } from 'redux'; // -immutable
// import { Provider } from 'react-redux';
ReactDOM.render(
<div>
<a href="/views/dog.html"></a>
<a href="/views/presentation.html"></a>
... |
src/modules/history-sync/index.js | tegon/traktflix | import '../../assets';
import React from 'react';
import ReactDOM from 'react-dom';
import BrowserStorage from '../../class/BrowserStorage';
import Rollbar from '../../class/Rollbar';
import ViewingActivityApp from '../../class/history-sync/ViewingActivityApp';
import shared from '../../class/Shared';
shared.setBackgr... |
components/card/Card.js | rubenmoya/react-toolbox | import React from 'react';
import PropTypes from 'prop-types';
import { themr } from 'react-css-themr';
import classnames from 'classnames';
import { CARD } from '../identifiers';
const Card = ({ children, className, raised, theme, ...other }) => {
const classes = classnames(theme.card, {
[theme.raised]: raised,... |
src/components/Partials/Main3.js | luanlv/comhoavang | import React from 'react'
import Link from '../Link'
import FacebookProvider, { Comments } from 'react-facebook';
class Main extends React.Component {
render() {
const {page, totalPage, data} = this.props.news
const news = data
return (
<div id="colContent">
<div className="head lineh">
... |
newclient/scripts/components/user/control/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
test/month_test.js | marketplacer/react-datepicker | import React from 'react'
import ReactDOM from 'react-dom'
import TestUtils from 'react-addons-test-utils'
import moment from 'moment'
import Month from '../src/month'
import Day from '../src/day'
import range from 'lodash/range'
describe('Month', () => {
it('should have the month CSS class', () => {
const month... |
src/app/containers/App/App.js | harsh376/Hector | import React from 'react';
import 'bootstrap/less/bootstrap.less';
import 'font-awesome/scss/font-awesome.scss';
import LayoutBootstrap from '../LayoutBootstrap/LayoutBootstrap';
function App(props) {
return <LayoutBootstrap content={props.children} routes={props.routes} />;
}
App.propTypes = {
children: React.P... |
src/components/TeamList.js | nathejk/status-app | import React from 'react'
import {List} from 'material-ui/List'
import TeamListItem from './TeamListItem'
const TeamList = (props) => {
let listItems = props.teams === undefined ? null : props.teams.map((team) => {
let memberItems = team.members.map(member => {
return (
<TeamListItem
key=... |
app/components/NotFound.js | shaunstanislaus/redux-blog-example | import styles from './../global.styl';
import React from 'react';
import CSSModules from 'react-css-modules';
@CSSModules(styles)
export default class NotFound extends React.Component {
render() {
return (
<div styleName="wrapper">
<h1>Not Found</h1>
</div>
);
}
}
|
source/scripts/components/app.js | ecoker/sockets | import React from 'react';
var io = require('socket.io-client');
/* STYLES */
import '../../styles/base.scss';
/* COMPONENTS */
import Name from './name.js';
import Chatty from './chatty.js';
export default class App extends React.Component {
constructor() {
super();
this.state = {
name: null,
... |
src/components/common/svg-icons/places/casino.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesCasino = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM7.5 18c-.83 0-1.5-.67-1.5-1.5S6.67 15 7.5 15s1.5.67 1.5 1.5S8.33 18 7.5 18z... |
src/js/components/TaskForm.js | tanaka0325/manday_web | import React from 'react'
const TaskForm = (props) => {
let input
return (
<div className="task-form">
<form
onSubmit={(e) => {
e.preventDefault()
if (!input.value.trim()) { return }
props.actions.add({
user_id: 1,
date: props.date,
... |
public/javascripts/utils.js | JetChat/JetChat | import React from 'react';
import ReactDOM from 'react-dom';
import PrettyDate from 'pretty-date'
var $ = require('jquery');
// Other utils
var __urlRegex = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
window.setInterval(function () {
$(".imagify").each(function (i, a) {
... |
src/components/Blog/List/List.js | taken1994/big-demo | import React from 'react';
import map from 'lodash/fp/map';
import BlogCard from './BlogCard'
import axios from 'axios'
import CircularProgress from 'material-ui/CircularProgress';
class List extends React.Component {
constructor(){
super();
this.state={
posts: '',
wait:true
}
}
componen... |
app/javascripts/components/Label.js | f96q/kptboard | import React from 'react'
export class Label extends React.Component {
render() {
return (
<div className={`Label is-${this.props.label.kind}`}
onClick={event => {
this.props.openEditLabelModal({ id: this.props.label.id, clientX: event.clientX, clientY: event.clientY })
event.st... |
src/SafeAnchor.js | herojobs/react-bootstrap | import React from 'react';
import createChainedFunction from './utils/createChainedFunction';
/**
* Note: This is intended as a stop-gap for accessibility concerns that the
* Bootstrap CSS does not address as they have styled anchors and not buttons
* in many cases.
*/
export default class SafeAnchor extends React... |
docs-ui/components/hovercard.stories.js | mvaled/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
import {text, select} from '@storybook/addon-knobs';
import Hovercard from 'app/components/hovercard';
const positionOptions = {
top: 'top',
bottom: 'bottom',
left: 'left',
right: 'right',
};... |
src/icons/NextWeekIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class NextWeekIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path fill="#010101" d="M40 14h-8v-4c0-1.1-.44-2.1-1.18-2.82C30.1 6.44 29.1 6 28 6h-8c-2.2 0-4 1.8-4 4v4H8c-2.2 0-... |
src/Popover/Popover.spec.js | kittyjumbalaya/material-components-web | /* eslint-env mocha */
import React from 'react';
import {assert} from 'chai';
import {shallow, mount} from 'enzyme';
import Popover from './Popover';
import PopoverAnimationDefault from './PopoverAnimationDefault';
import Paper from '../Paper';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Popover />',... |
frontend/node_modules/react-error-overlay/lib/containers/RuntimeError.js | rootweiller/morichal | /**
* Copyright (c) 2015-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.
*/
import React from 'react';
import Header from '../components/Header';
import StackTrace from './StackTrace';
var wrapperStyle = {
dis... |
src/components/Intro.js | kpedneka/protean-react | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Jumbotron, Button } from 'react-bootstrap';
import { login } from '../actions/Auth';
class Intro extends Component {
constructor(props) {
super(props);
this.login = this.login.bind(this);
}
login(e) {
e.preventDefault... |
app/routes.js | jeflores7/character-voting-app | import React from 'react';
import { Route } from 'react-router';
import App from './components/App';
import Home from './components/Home';
import AddCharacter from './components/AddCharacter';
import Character from './components/Character';
import CharacterList from './components/CharacterList';
import Stats from './co... |
integration/azure/authentication/ms-identity-v2/implicit-grant/ClientApp/src/components/Layout.js | advantys/workflowgen-templates | import React, { Component } from 'react';
import { Container } from 'reactstrap';
import NavMenu from './NavMenu';
export default class extends Component {
render () {
return (
<div>
<NavMenu />
<Container>
{this.props.children}
</Container>
</div>
);
}
}
|
app/components/RecordProcedure.js | oroszms/nhshd17 | // @flow
import React, { Component } from 'react';
import { Link, hashHistory } from 'react-router';
import RaisedButton from 'material-ui/RaisedButton';
import Paper from 'material-ui/Paper';
import TextField from 'material-ui/TextField';
import Slider from 'material-ui/Slider';
import Toggle from 'material-ui/Toggle'... |
frontend/app/js/index.js | pivotal/pulse | import 'phantomjs-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Route, IndexRoute } from 'react-router';
import { createStore, compose, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import thunkMiddleware from 'redux-thunk';
import {
ReduxRouter,
r... |
services/editor/src/pages/settings/components/ExternalAppsPage/CreateExternalAppSecret.js | Soluto/tweek | import React from 'react';
import { buttons } from '../../../../contexts/Alerts';
import './CreateExternalAppSecret.css';
const Component = ({ appId, appSecret }) => (
<div>
<div className="note">
Write out the application id and the secret before closing this window.
</div>
<div className="field-w... |
packages/core/src/icons/components/RemoveElement.js | iCHEF/gypcrete | import React from 'react';
export default function SvgRemoveElement(props) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="-2148 -4777 32 32"
width="1em"
height="1em"
{...props}
>
<path
data-name="\u9577\u65B9\u5F62 7838"
fill="transparent"
... |
src/routes/app/routes/ui/routes/lists/components/Contacts.js | ahthamrin/kbri-admin2 | 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 Divider from 'material-ui/Divider';
import Avatar from 'material-ui/Avatar';
import {pinkA200, transparent} from 'ma... |
lib/components/report/__tests__/speed.js | conveyal/analysis-ui | //
import enzyme from 'enzyme'
import React from 'react'
import Speed from '../speed'
describe('Report > Speed', () => {
it('renders correctly', () => {
const props = {
kmh: 2000
}
// mount component
enzyme.mount(<Speed {...props} />)
})
})
|
src/FABButton.js | tleunen/react-mdl | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Button from './Button';
const FABButton = (props) => {
const { mini, className, children, ...otherProps } = props;
const classes = classNames('mdl-button--fab', {
'mdl-button--mini-fab': mini
... |
test/integration/getserversideprops/pages/blog/index.js | flybayer/next.js | import React from 'react'
import Link from 'next/link'
export async function getServerSideProps() {
return {
props: {
slugs: ['post-1', 'post-2'],
time: (await import('perf_hooks')).performance.now(),
},
}
}
export default ({ slugs, time }) => {
return (
<>
<p>Posts: {JSON.stringif... |
src/components/LeftDrawer.js | laminhtruong/sprite-mapping | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import { Link } from 'react-router-dom'
import Drawer from 'material-ui/Drawer';
import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List';
import Divider from 'material-ui/Divider';
cons... |
packages/benchmarks/src/implementations/aphrodite/Box.js | necolas/react-native-web | import React from 'react';
import View from './View';
import { StyleSheet } from 'aphrodite';
const Box = ({ color, fixed = false, layout = 'column', outer = false, ...other }) => (
<View
{...other}
style={[
styles[`color${color}`],
fixed && styles.fixed,
layout === 'row' && styles.row,
... |
frontend/src/screens/trend-analysis/trend-viewer/trend-viewer.js | linea-it/qlf | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
const apiUrl =
process.env.NODE_ENV !== 'development'
? window.origin + '/'
: process.env.REACT_APP_API;
const styles = {
iframe: {
height: 'calc(100vh - 135px)',
width: 'calc(100v... |
information/blendle-frontend-react-source/app/modules/signup/views/verify/VerifyEmail.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import i18n from 'instances/i18n';
import classNames from 'classnames';
class VerifyEmail extends React.Component {
static propTypes = {
isResend: PropTypes.bool,
emailExists: PropTypes.bool,
user: PropTypes.object.isRequired,
onResend: P... |
src/views/pages/home/index.js | r-park/react-redux-seed | import React from 'react';
function HomePage() {
return <h1>Home</h1>;
}
export default HomePage;
|
loc8-react-redux-front-end/src/components/ProfileFavorites.js | uberslackin/django-redux-loc8-ARweb | 'use strict';
import { Profile, mapStateToProps } from './Profile';
import React from 'react';
import { Link } from 'react-router';
import agent from '../agent';
import { connect } from 'react-redux';
const mapDispatchToProps = dispatch => ({
onLoad: (payload) =>
dispatch({ type: 'PROFILE_FAVORITES_PAGE_LOADED'... |
example/src/index.js | inuscript/redux-candy | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
assets/node_modules/react-router/es6/withRouter.js | janta-devs/janta | 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; };
import invariant from 'invariant';
import React from 'react';... |
src/views/form.js | bulletcms/bullet-tracer | import React from 'react';
class Input extends React.Component{
constructor(props){
super(props);
this.state = {value: props.value || ''};
}
componentWillReceiveProps(nextProps) {
this.setState({value: nextProps.value || ''});
}
/**
* props:
* label : string
* type : s... |
app/components/StreamMessages.js | lhall-adexos/LogSwarm | // @flow
import React, { Component } from 'react';
import hash from 'object-hash';
import styles from './Messages.css';
export default class StreamMessages extends Component {
constructor(props) {
super(props);
this.state = {
messages: props.messages
};
console.log(this... |
src/js/components/icons/base/DocumentSound.js | odedre/grommet-final | /**
* @description DocumentSound 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.
... |
src/views/hr-view/components/li.js | vynogradskyi/resume | import React from 'react';
import styles from 'css-modules/hr-view/li.scss';
import classnames from 'classnames';
export default ({text, className, customLi}) => {
return <li className={classnames(styles.li, className)}>{customLi || text}</li>
} |
src/components/user-list-item.component.js | housseindjirdeh/git-point | import React from 'react';
import {
StyleSheet,
View,
TouchableHighlight,
TouchableOpacity,
Text,
Image,
} from 'react-native';
import { Icon } from 'react-native-elements';
import { colors, fonts, normalize } from 'config';
type Props = {
user: Object,
title: any,
subtitle: string,
onlyImageNavig... |
docs/app/Examples/modules/Modal/Variations/index.js | shengnian/shengnian-ui-react | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const ModalExamples = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Size'
description='A moda... |
app/components/PublicationView/index.js | mhoffman/CatAppBrowser | /**
*
* PublicationView
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import ReactGA from 'react-ga';
import { isMobileOnly } from 'react-device-detect';
import Helmet from 'react-helmet';
import _ from 'lodash';
import Grid from 'material-ui/Grid';
import Hidden from 'material-ui/Hidden';
im... |
app/imports/ui/admin/ContractUI.js | raiden-network/raiden-token | import React, { Component } from 'react';
import CommandComponent from './CommandComponent'
export default class ContractUI extends Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
let { contract, web3, commands, values, onClick } = this.props;
console.log(this.props)... |
src/components/__tests__/Search-test.js | Justkant/WhatAShop | /* eslint no-unused-expressions: 0*/
import React from 'react';
import { renderIntoDocument } from 'react-addons-test-utils';
import { expect } from 'chai';
import { Search } from 'components';
import { Provider } from 'react-redux';
import { reduxReactRouter } from 'redux-router';
import createHistory from 'history/li... |
src/components/BalanceReport/index.js | bostrom/harvest-balance | import React from 'react';
import { Transition } from 'react-transition-group';
import { bool, shape, number, string } from 'prop-types';
import styled from 'styled-components';
import BalanceReportDetails from '../BalanceReportDetails';
const Header = styled.div`
font-size: 1.5rem;
text-align: center;
transform... |
frontend/src/courses/components/header-column.js | OptimusCrime/youkok2 | import React from 'react';
import {ORDER_ASC, ORDER_DESC} from "../constants";
export const HeaderColumn = ({id, text, column, order, changeOrder }) => (
<div
className={`course-row__${id} course-row__header--${id}`}
onClick={() => {
if (column === id) {
changeOrder(
id,
ord... |
src/index.js | Sharlaan/selfchat | import { deepOrange, lightBlue } from '@material-ui/core/colors';
import { createMuiTheme, MuiThemeProvider } from '@material-ui/core/styles';
import React from 'react';
import { render } from 'react-dom';
import App from './App';
import './index.css';
// Default theme values: https://material-ui.com/customization/def... |
src/docs/examples/TextInput/ExampleOptional.js | ebirito/ps-react-ebirito | import React from 'react';
import TextInput from 'ps-react-ebirito/TextInput';
/** Optional TextBox */
export default class ExampleOptional extends React.Component {
render() {
return (
<TextInput
htmlId="example-optional"
label="First Name"
name="firstname"
onChange={() => ... |
app/containers/LoginContainer.js | thereactleague/galaxy | import React, { Component } from 'react';
import { withRouter } from 'react-router';
import ping from 'node-http-ping';
import { isURL, toInt } from 'validator';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import LinearProgress from 'material-ui/LinearProgress';
... |
src/DataTable/__tests__/TableHeader-test.js | react-mdl/react-mdl | /* eslint-env mocha */
import chai, { expect } from 'chai';
import chaiEnzyme from 'chai-enzyme';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import React from 'react';
import TableHeader from '../TableHeader';
import Tooltip from '../../Tooltip';
chai.use(chaiEnzyme());
describe('TableHeader', () =>... |
examples/js/remote/remote-store-filtering.js | AllenFang/react-bootstrap-table | /* eslint guard-for-in: 0 */
/* eslint no-console: 0 */
import React from 'react';
import RemoteFiltering from './remote-filtering';
function getProducts() {
const products = [];
const startId = products.length;
for (let i = 0; i < 12; i++) {
const id = startId + i;
products.push({
id: id,
n... |
src/svg-icons/hardware/router.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareRouter = (props) => (
<SvgIcon {...props}>
<path d="M20.2 5.9l.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7zm-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6... |
src/templates/index-template.js | ryanermita/ryanermita.github.io | // @flow strict
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
import Sidebar from '../components/Sidebar';
import Feed from '../components/Feed';
import Page from '../components/Page';
import Pagination from '../components/Pagination';
import { useSiteMetadata }... |
src/views/Main/Account.js | halo-design/halo-optimus | import React from 'react'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
import { bindActionCreators } from 'redux'
import avatarImg from 'IMAGE/avatar.png'
import { getCookie } from 'UTIL/cookie'
import { logout } from 'REDUCER/public/login'
import { setPasswordVisible } from 'REDU... |
frontend/src/containers/LoginTopBar.js | OpenCollective/opencollective-website | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { pushState } from 'redux-router';
import * as storage from '../lib/storage';
import { getQueryParams } from '../lib/utils';
import fetchUser from '../actions/users/fetch_by_id';
import logout from '../actions/session/logout';
impo... |
src/icons/font/BuildIcon.js | skystebnicki/chamel | import React from 'react';
import PropTypes from 'prop-types';
import FontIcon from '../../FontIcon';
import ThemeService from '../../styles/ChamelThemeService';
/**
* Build button
*
* @param props
* @param context
* @returns {ReactDOM}
* @constructor
*/
const BuildIcon = (props, context) => {
let theme =
... |
src/components/Weui/panel/panel_header.js | ynu/ecard-wxe | /**
* Created by n7best
*/
import React from 'react';
import classNames from 'classnames';
export default class PanelHeader extends React.Component {
render() {
const {children, ...others} = this.props;
const className = classNames({
weui_panel_hd: true
});
return ... |
app/components/Menu.js | peterfication/space-jumper | import PT from 'prop-types'
import React from 'react'
import styles from './menu.scss'
const Menu = props => (
<div className={styles['menu-container']}>
<a onClick={props.startGame}>Start</a>
<a onClick={props.showAbout}>About</a>
</div>
)
if (process.env.NODE_ENV !== 'production') {
Menu.propTypes = ... |
lib/components/Width.js | boldkhuu/uikit-with-react | import { classNames } from '../utils';
import React from 'react';
const WIDTHS = ['small', 'medium', 'large'];
const Width = React.createClass({
displayName: 'UK Width',
propTypes: {
all: React.PropTypes.string,
small: React.PropTypes.string,
medium: React.PropTypes.string,
large: React.PropTypes... |
src/svg-icons/av/playlist-add.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistAdd = (props) => (
<SvgIcon {...props}>
<path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"/>
</SvgIcon>
);
AvPlaylistAdd = pure(AvPlaylistAdd);
AvPlaylistAdd... |
examples/huge-apps/routes/Grades/components/Grades.js | buddhike/react-router | import React from 'react';
class Grades extends React.Component {
render () {
return (
<div>
<h2>Grades</h2>
</div>
);
}
}
export default Grades;
|
blueocean-material-icons/src/js/components/svg-icons/communication/swap-calls.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const CommunicationSwapCalls = (props) => (
<SvgIcon {...props}>
<path d="M18 4l-4 4h3v7c0 1.1-.9 2-2 2s-2-.9-2-2V8c0-2.21-1.79-4-4-4S5 5.79 5 8v7H2l4 4 4-4H7V8c0-1.1.9-2 2-2s2 .9 2 2v7c0 2.21 1.79 4 4 4s4-1.79 4-4V8h3l-4-4z"/>
</SvgIcon>
);
Commu... |
app/components/AddTask/DeliveryAddress/index.js | prudhvisays/season | import React from 'react';
import Input from '../Input';
import Flatpickr from 'react-flatpickr';
import '../../../../node_modules/flatpickr/dist/themes/dark.css';
import DMaps from '../DMaps';
import '../TaskAddress/taskAddress.css';
import moment from 'moment';
export default class TaskAddress extends React.Componen... |
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js | dsaved/africhat-platform-0.1 | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import classnames from 'classnames';
import InviteUserStore from 'stores/InviteUserStore';
import { AsyncActionStates } from 'constants/ActorAppConstants';
import AvatarItem from 'components/common/AvatarItem.react';
... |
Realization/frontend/czechidm-core/src/components/advanced/Navigation/NavigationItem.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import classnames from 'classnames';
//
import * as Basic from '../../basic';
/**
* Single navigation item.
*
* @author Radek Tomiška
*/
export default class NavigationItem extends Basic.AbstractContextComponent... |
modules/gui/src/app/home/body/process/recipe/remapping/panels/inputImagery/assetSection.js | openforis/sepal | import {AssetInput} from 'widget/assetInput'
import {msg} from 'translate'
import PropTypes from 'prop-types'
import React from 'react'
import style from './inputImage.module.css'
export default class AssetSection extends React.Component {
render() {
const {input, onLoading} = this.props
return (
... |
src/index.js | catarina2/eva | import React from 'react';
import ReactDOM from 'react-dom';
import Root from './containers/Root';
import './index.css';
ReactDOM.render(<Root />, document.getElementById('app'));
|
components/helpline.js | gembarrett/hamara-internet-app | import React from 'react';
import { StyleSheet, Text, View, Button, ScrollView } from 'react-native';
import BasicText from './sub/basicText.js';
import { prefs } from '../routes/prefs.js';
import { helpline } from '../content/helpline.js';
import { translatedText, translatedTitle, printLinks } from '../routes/shared.j... |
src/library/validations/components/CheckBox.js | zdizzle6717/universal-react-movie-app | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import defaultValidations from '../constants/defaultValidations'
import classNames from 'classnames';
import FormActions from '../actions/FormActions';
import FormStore from '../stores/FormStore';
export default class CheckBox extends React.Co... |
frontend/src/Movie/Editor/Delete/DeleteMovieModal.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import DeleteMovieModalContentConnector from './DeleteMovieModalContentConnector';
function DeleteMovieModal(props) {
const {
isOpen,
onModalClose,
...otherProps
} = props;
return (
<Modal
... |
ui/src/main/js/components/__tests__/JobHistory-test.js | thinker0/aurora | import React from 'react';
import { shallow } from 'enzyme';
import JobHistory from '../JobHistory';
import TaskList from '../TaskList';
import { ScheduledTaskBuilder } from 'test-utils/TaskBuilders';
describe('JobHistory', () => {
it('Should render a task list only with terminal tasks', () => {
const tasks = ... |
websrc/components/dashboard/ProjectSegmentsPanel.js | Ricky-Nz/react-relay-example | import React from 'react';
import Relay from 'react-relay';
import { Panel, Button } from 'react-bootstrap';
import SegmentItem from './SegmentItem';
class ProjectSegmentsEditor extends React.Component {
constructor(props) {
super(props);
this.state = this.onPropChanged(props);
}
componentWillReceiveProps(nextP... |
src/svg-icons/image/blur-circular.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBlurCircular = (props) => (
<SvgIcon {...props}>
<path d="M10 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zM7 9.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5... |
app/card.js | GDGVIT/website-stat-electron | /**
* Created by rahul on 9/28/16.
*/
import React from 'react';
class Card extends React.Component{
constructor(props){
super(props);
this.state={
style:'card col s12'
}
}
render(){
this.state.style=this.props.color+' card col s12';
return(
<... |
src/components/SomeoneStaffing.js | theodo/captain-staffing | import React from 'react'
import PropTypes from 'prop-types'
export default class SomeoneStaffing extends React.Component {
static propTypes = {
header: PropTypes.string.isRequired,
}
render() {
return (
<div className="row">
<div className="header cell">{ this.props.header }</div>
... |
src/List/ListItem.spec.js | xmityaz/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import ListItem from './ListItem';
import getMuiTheme from '../styles/getMuiTheme';
describe('<ListItem />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node, {con... |
src/components/obligee/BoundaryList.js | axmand/react-webpack-redux | import React, { Component } from 'react';
import CheckCell from './CheckCell'
import { connect } from 'react-redux'
// import PointNameCell from './PointNameCell'
//import projectData from "./../../redux/RootData";
import InputListCell from "./InputListCell"
import MutiCheckButton from "./MutiCheckButton"
// Map Redux... |
docs/app/Examples/addons/Radio/Types/Radio.js | jcarbo/stardust | import React from 'react'
import { Radio } from 'stardust'
const RadioRadioExample = () => (
<Radio label='Make my profile visible' />
)
export default RadioRadioExample
|
app/app.js | EugeneHlushko/game-15 | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
server/server.js | openfocus/HTH-MERN | import Express from 'express';
import compression from 'compression';
import mongoose from 'mongoose';
import bodyParser from 'body-parser';
import path from 'path';
import IntlWrapper from '../client/modules/Intl/IntlWrapper';
// Webpack Requirements
import webpack from 'webpack';
import config from '../webpack.confi... |
benchmarks/dom-comparison/src/implementations/reactxp/Provider.js | risetechnologies/fela | /* eslint-disable react/prop-types */
import React from 'react';
import { object } from 'prop-types';
import { View } from 'reactxp';
class Provider extends React.Component {
/* this mock context is necessary for reactxp to work without errors… ¯\_(ツ)_/¯ */
static childContextTypes = {
focusManager: object
... |
src/index.js | Sekhmet/busy | import React from 'react';
import ReactDOM from 'react-dom';
import { browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import steemconnect from 'steemconnect';
import ReactGA from 'react-ga';
import { AppContainer } from 'react-hot-loader';
import getStore from './store';
import { isSmall }... |
src/components/Top.js | glennwedin/Progressive-Web-App | /* globals navigator */
"use strict";
import React from 'react';
export default class Top extends React.Component {
constructor () {
super();
this.state = {
isOnline: true
};
}
componentDidMount() {
this.checkConnection();
}
checkConnection() {
if(navigator.connection || navigator.mozConnection || ... |
App/Containers/MainScreen.js | friskipr/Ignite_MyApp | import React from 'react'
import { Text } from 'react-native'
import { Tabs, Tab, Icon } from 'react-native-elements'
import InventoryScreen from './Inventory'
export default class MainScreen extends React.Component {
constructor(props) {
super(props)
this.state = {
selectedTab: 'items'... |
plugins/Files/js/components/unlockwarning.js | NebulousLabs/Sia-UI | import PropTypes from 'prop-types'
import React from 'react'
const UnlockWarning = ({ onClick }) => (
<div className='allowance-dialog unlock-warning'>
<h1 className='unlock-warning-head'>
Your wallet must be unlocked and synchronized to buy storage.
</h1>
<div className='allowance-buttons'>
... |
src/components/About.js | jalcantara90/cv | import React from 'react';
import PropTypes from 'prop-types';
import Social from './Social';
const About = ({avatar, name, profession, bio, address, social}) => {
return(
<div className='bio'>
<div className='avatar'>
<div className="img-container">
<img src={avatar} alt={name} />
... |
client/mobile/src/views/StudentLayout.js | CongYunan/course_attendance | // 加载 React 相关组件
import React, { Component } from 'react';
// 加载 Ant Design 相关组件
import { Icon } from 'antd';
// 加载 Dva 相关组件
import { connect } from 'dva';
// 加载样式
import Styles from '../styles/StudentLayout.less';
// 加载自定义组件
import CourseAttendance from '../components/Student/CourseAttendance';
import AttendanceConfir... |
node_modules/react-router/es6/Router.js | ArtixZ/LyingMan2 | 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 = {... |
src/routes/config/tvbrand/index.js | china2008qyj/DVA-DEMO | import React from 'react'
import PropTypes from 'prop-types'
import { routerRedux } from 'dva/router'
import { connect } from 'dva'
import { Row, Col, Button, Popconfirm } from 'antd'
import List from './List'
import Filter from './Filter'
import Modal from './Modal'
const Tvbrand = ({ location, dispatch, tvbrand, loa... |
src/main/resources/public/js/components/dropdown_menus/member/member-dropdown-footer.js | SICTIAM/ozwillo-portal | import React from 'react';
import PropTypes from 'prop-types';
import Select from 'react-select';
import { i18n } from "../../../config/i18n-config"
import { t } from "@lingui/macro"
import NotificationMessageBlock from '../../notification-message-block';
class MemberDropdownFooter extends React.Component {
stat... |
src/index.js | raq929/react-french-toast | import React from 'react';
import {render} from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
import './styles/styles.scss'; //Yep, that's right. You can import SASS/CSS file... |
internals/templates/containers/HomePage/index.js | BartoszBazanski/react-100-pushup-challenge | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.