path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
4-Redux-Blog/test/test_helper.js | OscarDeDios/cursoUdemyReact | 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... |
server/dashboard/js/components/Details.react.js | MrAlone/mzbench | import React from 'react';
import Bench from './Bench.react';
import Dashboard from './Dashboard.react';
import GlobalStore from '../stores/GlobalStore';
class Details extends React.Component {
constructor(props) {
super(props);
this.state = this._resolveState();
this._onChange = this._onC... |
src/img/img_map.js | mikah1337/null-terminator | import React from 'react';
import Icon_Distribute from '../img/imgs/icon_distribute';
import Icon_Fullcontrol from '../img/imgs/icon_fullcontrol';
import Icon_Meter_Static from '../img/imgs/icon_meter_static';
import * as Userpic from '../img/imgs/icon_userpic';
const Img_Map = (props) => {
return {
"Icon... |
src/svg-icons/action/add-shopping-cart.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAddShoppingCart = (props) => (
<SvgIcon {...props}>
<path d="M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-... |
src/cms/preview-templates/post-preview.js | apalhu/website | // @flow strict
import React from 'react';
import type { Entry, WidgetFor } from '../../types';
type Props = {
entry: Entry,
widgetFor: WidgetFor
};
const PostPreview = ({ entry, widgetFor }: Props) => {
const body = widgetFor('body');
const title = entry.getIn(['data', 'title']);
return (
<div classNa... |
_src/src/pages/index.js | YannickDot/yannickdot.github.io | import React from 'react'
import { Link } from 'react-router'
import orderBy from 'lodash/orderBy'
import get from 'lodash/get'
import { prefixLink } from 'gatsby-helpers'
import { rhythm } from 'utils/typography'
import Helmet from 'react-helmet'
import { config } from 'config'
import include from 'underscore.string/i... |
src/components/Checkbox.react.js | codazen/formulationjs | /*
Copyright (c) 2016 Codazen.
This file is subject to the license terms in the LICENSE file in the top-level directory of this distribution and at https://github.com/codazen/formulationjs/blob/master/LICENSE.
No part of FormulationJS, including this file, may be copied, modified, propagated, or distributed except a... |
frontend/Comments/CommentLogin.js | fdemian/Morpheus | import React from 'react';
import format_title_string from '../utils/formats';
import OAuthButtons from '../Login/OAuthButtons';
const CommentLogin = ({storyId, storyName, providers}) => {
return(
<div style={{'textAlign':'center', 'marginBottom': '100px', 'marginTop': '40px'}}>
<hr />
<h1>Log in to comment... |
src/routes/long_range/log/Filter.js | china2008qyj/DVA-DEMO | import React from 'react'
import PropTypes from 'prop-types'
import moment from 'moment'
import { FilterItem } from 'components'
import { Form, Button, Row, Col, DatePicker, Input} from 'antd'
const Search = Input.Search;
const { RangePicker } = DatePicker;
const ColProps = {
xs: 24,
sm: 12,
style: {
margin... |
src/components/Header.js | tulsajs/tulsajs.com | import React from 'react';
import propsForType from '../utils/propsForType';
import { Span } from './Base';
const types = [
{ type: 1, props: { as: 'h1', fs: '5xl' } },
{ type: 2, props: { as: 'h2', fs: '4xl' } },
{ type: 3, props: { as: 'h3', fs: '3xl' } },
{ type: 4, props: { as: 'h4', fs: '2xl' } },
{ typ... |
share/components/Layout/Layout.js | caojs/password-manager-server | import React from 'react';
import FaClose from 'react-icons/lib/fa/close';
import FaMinus from 'react-icons/lib/fa/minus';
import style from './Layout.css';
function Layout({ children, main, child, ...rest }) {
return (
<div className={style.main}>
<div className={style.bar}>
<FaClose className={st... |
app/react/main.js | NikaBuligini/git-auto-deploy | import React from 'react'
import { render } from 'react-dom'
import { browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import configureStore from './store/configureStore'
import Root from './containers/Root'
window.__initialState__ = JSON.parse(document.getElementById('in... |
docs/client/components/pages/Mention/RemoteMentionEditor/index.js | draft-js-plugins/draft-js-plugins-v1 | import React, { Component } from 'react';
import { EditorState } from 'draft-js';
import Editor from 'draft-js-plugins-editor';
import createMentionPlugin from 'draft-js-mention-plugin';
import editorStyles from './editorStyles.css';
import { fromJS } from 'immutable';
const mentionPlugin = createMentionPlugin();
cons... |
src/svg-icons/maps/local-phone.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPhone = (props) => (
<SvgIcon {...props}>
<path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-... |
frontend/src/Matchmake.js | natsukagami/hakkero-project | import React, { Component } from 'react';
import countdown from 'countdown';
import { connect } from 'react-redux';
import { actionResponse } from './data/home';
import { Col, Button, Glyphicon, Row } from 'react-bootstrap';
import wavGameStart from './sounds/game_start.wav';
const gameStart = new Audio(wavGameStart);... |
test/test_helper.js | reactjs-andru1989/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... |
src/code/hoc/update-on-resize-scroll.js | concord-consortium/geniblocks | import React from 'react';
/*
Higher-order component (HOC) that uses the PropsProxy pattern
(https://medium.com/@franleplant/react-higher-order-components-in-depth-cf9032ee6c3e)
to force an update of the WrappedComponent when a window resize or scroll event occurs.
This can be necessary, for instance, when us... |
modules/RouteContext.js | pheadra/react-router | import React from 'react'
const { object } = React.PropTypes
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent transitions.
*/
const RouteContext = {
prop... |
example/plugins/LinkDialog.js | liuhong1happy/react-umeditor | import React, { Component } from 'react';
import Dialog from '../../lib/components/base/Dialog'
import './LinkDialog.less'
export default class LinkDialog extends Component {
constructor(props) {
super(props);
this.state = {
link: {
url: "",
title: "",
target: "__blank"
},
handle: ... |
src/svg-icons/social/pages.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPages = (props) => (
<SvgIcon {...props}>
<path d="M3 5v6h5L7 7l4 1V3H5c-1.1 0-2 .9-2 2zm5 8H3v6c0 1.1.9 2 2 2h6v-5l-4 1 1-4zm9 4l-4-1v5h6c1.1 0 2-.9 2-2v-6h-5l1 4zm2-14h-6v5l4-1-1 4h5V5c0-1.1-.9-2-2-2z"/... |
src/components/novel/Categorie/CategorieItem.js | AzSiAz/LN-Reader | import React from 'react'
import { View, Text, StyleSheet, TouchableHighlight } from 'react-native'
import PropTypes from 'prop-types'
import { Button } from 'react-native-elements'
export default class CategorieItem extends React.PureComponent {
render() {
const { cat } = this.props
return (
<Touchab... |
client/scripts/components/user/travel-log/travel-log-sort/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... |
src/components/app.js | Full-Metal-JS/reserver-space | import React, { Component } from 'react';
import DevTools from './devTools';
class App extends Component {
render() {
let devTools = process.env.NODE_ENV === 'development' ? <DevTools/> : '';
return (
<div>
{this.props.children}
{devTools}
</div>
);
}
}
export default... |
Veronica/Waundr/src/MarkerPopup.js | Waundr/Waundr.github.io | import React, { Component } from 'react';
import {
Animated,
Dimensions,
StyleSheet,
Text,
TextInput,
TouchableWithoutFeedback,
View,
} from 'react-native';
import {
MKTextField,
MKButton,
MKColor,
MKSwitch,
} from 'react-native-material-kit';
const RaisedButton = MKButton.button()
.withStyle(... |
e2e-tests/production-runtime/src/components/header.js | mingaldrichgan/gatsby | import React from 'react'
import { Link } from 'gatsby'
import PropTypes from 'prop-types'
const Header = ({ siteTitle }) => (
<div
style={{
background: `rebeccapurple`,
marginBottom: `1.45rem`,
}}
>
<div
style={{
margin: `0 auto`,
maxWidth: 960,
padding: `1.45... |
examples/todos/containers/AddTodo.js | neighborhood999/redux | import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
let AddTodo = ({ dispatch }) => {
let input
return (
<div>
<form onSubmit={e => {
e.preventDefault()
if (!input.value.trim()) {
return
}
dispatch(addTodo(input.v... |
pages/demos/steppers.js | cherniavskii/material-ui | import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from 'docs/src/pages/demos/steppers/steppers.md';
function Page() {
return (
<MarkdownDocs
markdown={markdown}
demos={{
... |
examples/react-native-glamorous-themes/index.ios.js | robinpowered/glamorous-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React from 'react'
import {AppRegistry} from 'react-native'
import Example from './example'
AppRegistry.registerComponent('GlamorousNativeThemes', () => Example);
|
src/components/BookShelf/BookShelf.js | DDDDDanica/react-udacity-myReads | /**
* Created by zhao.shen on 15/09/2017.
*/
import React from 'react';
import PropTypes from 'prop-types';
import Book from '../Book/Book';
import './BookShelf.scss';
export default class BookShelf extends React.Component {
render () {
const { shelf, books, updateBookShelf, getBookShelf } = this.props;
... |
index.ios.js | dbyilmaz/jobs | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class jobs extends Component {
render() {
return (
<View style={styles.container}>
... |
src/components/Toggled.js | ashmaroli/jekyll-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Checkbox from './form/Checkbox';
export default class Toggled extends Component {
constructor(props) {
super(props);
this.state = {
panel: props.checked
};
}
togglePanel(... |
src/client/components/console/login.js | uuchat/uuchat | import React, { Component } from 'react';
import Login from '../common/login';
export default class LoginView extends Component {
render() {
const loginProps = {
fetchUrl: '/console/login',
redirect: '/console/index'
};
return (
<Login {...loginProps}/>... |
src/js/components/Button/stories/IconLabel.js | grommet/grommet | import React from 'react';
import { Add } from 'grommet-icons';
import { Box, Button } from 'grommet';
export const IconLabel = () => (
<Box align="center" pad="large">
<Box round="full" overflow="hidden" background="neutral-1">
<Button icon={<Add />} hoverIndicator onClick={() => {}} />
</Box>
<B... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Create/FormComponents/Select.js | sambaheerathan/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
public/js/cat_source/es6/components/modals/RegisterModal.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 {checkRedeemProject as checkRedeemProjectApi} from '../../api/checkRedeemProject'
import {registerUse... |
ContosoUniversity.Spa.React/ClientApp/src/components/department/DepartmentList.js | alimon808/contoso-university | import React from 'react';
import PropTypes from 'prop-types';
import DepartmentListRow from './DepartmentListRow';
const DepartmentList =({departments}) => {
return(
<table className="table">
<thead>
<tr>
<th>Name</th>
<th>Budget</th>
... |
webpack/scenes/AnsibleCollections/AnsibleCollectionsPage.js | Katello/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import qs from 'query-string';
import { translate as __ } from 'foremanReact/common/I18n';
import { orgId } from '../../services/api';
import TableSchema from './AnsibleCollectionsTableSchema';
import ContentPage from '../../components/Conten... |
node_modules/react-bootstrap/es/Media.js | mohammed52/something.pk | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
test/test_helper.js | rcwlabs/yt-react | 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... |
src/svg-icons/action/favorite.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFavorite = (props) => (
<SvgIcon {...props}>
<path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6... |
src/svg-icons/communication/dialer-sip.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationDialerSip = (props) => (
<SvgIcon {...props}>
<path d="M17 3h-1v5h1V3zm-2 2h-2V4h2V3h-3v3h2v1h-2v1h3V5zm3-2v5h1V6h2V3h-3zm2 2h-1V4h1v1zm0 10.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.01.24l-2.2 ... |
blueprints/dumb/files/__root__/components/__name__/__name__.js | LaunchAcademy/name-game | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
frontend/src/App.js | danielemoraschi/docker-go-react | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
node_modules/react-bootstrap/es/NavDropdown.js | vietvd88/developer-crawler | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
fields/types/geopoint/GeoPointField.js | cermati/keystone | import Field from '../Field';
import React from 'react';
import {
FormInput,
Grid,
} from '../../../admin/client/App/elemental';
module.exports = Field.create({
displayName: 'GeopointField',
statics: {
type: 'Geopoint',
},
focusTargetRef: 'lat',
handleLat (event) {
const { value = [], path, onChange } = ... |
examples/with-dynamic-import/components/Counter.js | arunoda/next.js | import React from 'react'
let count = 0
export default class Counter extends React.Component {
add () {
count += 1
this.forceUpdate()
}
render () {
return (
<div>
<p>Count is: {count}</p>
<button onClick={() => this.add()}>Add</button>
</div>
)
}
}
|
packages/material-ui-icons/src/QuestionAnswer.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let QuestionAnswer = props =>
<SvgIcon {...props}>
<path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z" />
</SvgIcon>;
Ques... |
src/app-client.js | PtitNoony/abretonworkshop | /* global window document */
import React from 'react';
import { render } from 'react-dom';
import { BrowserRouter as Router } from 'react-router-dom';
import { App } from './components/App';
import axios from 'axios';
import { createBrowserHistory } from 'history';
const history = createBrowserHistory();
const AppCl... |
src/svg-icons/action/assignment-turned-in.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentTurnedIn = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .... |
app/components/ArticleStyle/index.js | Oscar-21/austin-conder | /**
*
* ArticleStyle
*
*/
import React from 'react';
import FlatButton from 'material-ui/FlatButton';
import Responsive from 'react-responsive';
import { Link } from 'react-router';
import AppBar from 'material-ui/AppBar';
import RaisedButton from 'material-ui/RaisedButton';
class ArticleStyle extends React.PureCompone... |
pathfinder/vtables/applicationlifecycleprojects/src/Table.js | leanix/leanix-custom-reports | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import TableUtilities from './common/TableUtilities';
class Table extends Component {
constructor(props) {
super(props);
}
render() {
return (
<BootstrapT... |
src/js/options.js | samuelsimoes/pomotasking | import App from './options/components/App'
import React from 'react'
import { render } from 'react-dom'
render(
<App />,
window.document.getElementById('app-container')
)
|
geonode/contrib/monitoring/frontend/src/containers/app/index.js | timlinux/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Style } from 'radium';
// Pages
import Alerts from '../../pages/alerts';
import AlertConfig from '../../pages/alert-config';
import AlertsSettings from '../../pages/alerts-settings';
import ErrorDetails from ... |
lib/types/Geometry.js | Kitware/arctic-viewer | import CollapsibleElement from 'paraviewweb/src/React/Widgets/CollapsibleWidget';
import CompositeControl from 'paraviewweb/src/React/Widgets/CompositePipelineWidget';
import CompositePipelineModel from 'paraviewweb/src/Common/State/PipelineState';
import contains from 'mout/src/array/contains';
import GeometryBuilder ... |
client/src_old/components/common/LoadingButton.js | Del7a/vehicle-finder | import React from 'react'
import LoadingIndicator from './LoadingIndicator'
function LoadingButton (props) {
return (
<a href='#' className={props.className + ' btn btn--loading'} disabled='true'>
<LoadingIndicator />
</a>
)
}
LoadingButton.propTypes = {
className: React.PropTypes.string
}
export... |
app/components/Home.js | BenGoldstein88/hitch-frontend | import React from 'react';
import HitchNavBar from './navbar/HitchNavBar'
import AppMain from './AppMain';
export default class Home extends React.Component {
constructor(props) {
super(props);
this.state = {
tool: 'home',
event: 'wedding',
display: 'home',
pay: false
};
this.h... |
src/components/Resume/Experience.js | karajrish/karajrish.github.io | import React from 'react';
import PropTypes from 'prop-types';
import Job from './Experience/Job';
const Experience = ({ data }) => (
<div className="experience">
<div className="link-to" id="experience" />
<div className="title">
<h3>Experience</h3>
</div>
{data.map((job) => (
<Job
... |
src/svg-icons/communication/no-sim.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationNoSim = (props) => (
<SvgIcon {...props}>
<path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 1.27-1.... |
app/javascript/mastodon/features/home_timeline/index.js | hugogameiro/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { expandHomeTimeline } from '../../actions/timelines';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../comp... |
blueocean-material-icons/src/js/components/svg-icons/maps/directions.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsDirections = (props) => (
<SvgIcon {...props}>
<path d="M21.71 11.29l-9-9c-.39-.39-1.02-.39-1.41 0l-9 9c-.39.39-.39 1.02 0 1.41l9 9c.39.39 1.02.39 1.41 0l9-9c.39-.38.39-1.01 0-1.41zM14 14.5V12h-4v3H8v-4c0-.55.45-1 1-1h5V7.5l3.5 3.5-3.5 3.5... |
src/components/AthletePage.js | DavidGuben/overwatchcharacterdatabase | import React from 'react';
import { Link } from 'react-router-dom';
import { AthletesMenu } from './AthletesMenu';
import { Medal } from './Medal';
import { Flag } from './Flag';
export const AthletePage = ({ athlete, athletes }) => {
const headerStyle = { backgroundImage: `url(/img/${athlete.cover})` };
return (
... |
src/svg-icons/device/signal-cellular-0-bar.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular0Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/>
</SvgIcon>
);
DeviceSignalCellular0Bar = pure(DeviceSignalCellular0Bar);
DeviceSignalCellular0Bar.displayN... |
app/jsx/context_modules/FileSelectBox.js | venturehive/canvas-lms | /*
* Copyright (C) 2015 - 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... |
examples/es6-tests-webpack/lib/watch-list-component.js | wallverb/ngReact | import React from 'react';
function renderWatchedRepos() {
let watchedRepos = this.props.watchedRepos;
return watchedRepos.map(function (repo, index) {
return (
<li key={index}>{repo.name}</li>
);
});
}
class WatchList extends React.Component {
render() {
return (
<ul>
{render... |
src/components/Post/Comments/Comments.js | Chogyuwon/chogyuwon.github.io | import React from 'react';
import { graphql, StaticQuery } from 'gatsby';
import ReactDisqusComments from 'react-disqus-comments';
export const PureComments = ({ data, postTitle, postSlug }) => {
const {
url,
disqusShortname
} = data.site.siteMetadata;
if (!disqusShortname) {
return null;
}
ret... |
src/components/fuel/FuelSavingsForm.js | Opelvectra/hello.react.redux | import React from 'react';
import PropTypes from 'prop-types';
import FuelSavingsResults from './FuelSavingsResults';
import Button from 'react-bootstrap/lib/Button';
import FuelSavingsTextInput from './FuelSavingsTextInput';
class FuelSavingsForm extends React.Component {
constructor(props, context) {
super(pro... |
src/shared/views/demos/Vibrate/Vibrate.js | in-depth/indepth-demo | import React from 'react'
import { Button } from 'react-toolbox/lib/button'
import styles from './Vibrate.css'
import { Icon } from '../../../components'
const handleVibrate = e => {
e.preventDefault()
window.navigator.vibrate([100, 10, 200, 10, 400, 10, 800, 10, 1600, 10, 3200, 10, 1600, 10, 800, 10, 400, 10, 200... |
src/Popover.js | glenjamin/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import isRequiredForA11y from 'prop-types-extra/lib/isRequiredForA11y';
import { createBootstrapComponent } from './ThemeProvider';
const propTypes = {
/**
* @default 'popover'
*/
bsPrefix: PropTypes.string,
... |
app/javascript/mastodon/features/explore/index.js | glitch-soc/mastodon | import React from 'react';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Column from 'mastodon/components/column';
import ColumnHeader from 'mastodon/components/column_header';
import { NavLink, Switch, Route ... |
src/packages/@ncigdc/modern_components/Exists/index.js | NCI-GDC/portal-ui | import React from 'react';
import { branch, compose, renderComponent } from 'recompose';
import NotFound from '@ncigdc/components/NotFound';
import { OverlayLoader } from '@ncigdc/uikit/Loaders/Loader';
import Exists from './Exists';
import exists from './exists.relay';
export const withExists = compose(
exists,
... |
renderer/components/UI/MainContent.js | LN-Zap/zap-desktop | import React from 'react'
import { Box } from 'rebass/styled-components'
const MainContent = props => (
<Box
as="article"
height="100%"
{...props}
sx={{
flex: 1,
overflowY: 'overlay',
overflowX: 'hidden',
}}
/>
)
export default MainContent
|
src/containers/Users.js | calumet/realtime-client | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import settings from 'src/settings';
import selectUsers from 'src/selectors/users';
import selectRoomsUsers from 'src/selectors/rooms-users';
import User from 'src/components/User';
import UsersLi... |
weather/src/components/app.js | titusjin/reduxExp | <<<<<<< HEAD
import React from 'react';
import { Component } from 'react';
import SearchBar from '../containers/search_bar';
import WeatherList from '../containers/weather_list';
=======
import React from "react";
import { Component } from "react";
import SearchBar from "../containers/search_bar";
import WeatherList ... |
client/src/Assistant/ApartmentFeatureInputs/ApartmentFeatures.js | ciex/mietlimbo | // @flow
import React from 'react'
import { injectIntl, defineMessages, FormattedMessage } from 'react-intl'
import { CardText } from 'material-ui/Card'
import CheckboxInput from './CheckboxInput'
import type { RangeInputProps } from './RangeSelectionGroup'
import FeatureInput from './FeatureInput'
import './Styles.... |
client/views/setupWizard/SetupWizardPage.stories.js | VoiSmart/Rocket.Chat | import React from 'react';
import SetupWizardPage from './SetupWizardPage';
import { finalStep } from './SetupWizardState';
export default {
title: 'components/setupWizard/SetupWizardPage',
component: SetupWizardPage,
};
export const atStep1 = () => <SetupWizardPage currentStep={1} />;
export const atStep2 = () =... |
src/server.js | astrauka/expensable-r3 | import Express from 'express';
import React from 'react';
import Router from 'react-router';
import Location from 'react-router/lib/Location';
import routes from './views/routes';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy... |
webapp/src/components/subsection.js | alliance-genome/agr | import React, { Component } from 'react';
import style from './style.css';
class Subsection extends Component {
render() {
return (
<div className={style.subsection}>
{this.props.hardcoded && <span className='tag tag-danger'>Hardcoded Example Data</span>}
{this.props.title && <h3>{this.pro... |
app/app.js | MakersLab/farm-client | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { AppContainer } from 'react-hot-loader';
import createSagaMiddlevar from 'redux-saga';
import reducer from './reducers';
import ... |
src/svg-icons/image/exposure-neg-2.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposureNeg2 = (props) => (
<SvgIcon {...props}>
<path d="M15.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17.23-.39.41-.78.54-1.17s.19-.79.19-1.18c0-.53-.09-1.02-.27-1.46-.18-.44-.44-.81... |
packages/react-reconciler/src/ReactFiberClassComponent.js | krasimir/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.
*
* @flow
*/
import type {Fiber} from './ReactFiber';
import type {ExpirationTime} from './ReactFiberExpirationTime';
import React from ... |
lib/octicons_react/script/build.js | primer/octicons | #!/usr/bin/env node
const octicons = require('../../build/data.json')
const fse = require('fs-extra')
const {join, resolve} = require('path')
const srcDir = resolve(__dirname, '../src/__generated__')
const iconsFile = join(srcDir, 'icons.js')
const typesFile = join(srcDir, 'icons.d.ts')
const GENERATED_HEADER = '/* T... |
src/components/Footer/Footer.react.js | DeveloperAlfa/chat.susi.ai | import React, { Component } from 'react';
import susi from '../../images/susi-logo.svg';
import './Footer.css';
import { Link } from 'react-router-dom';
class Footer extends Component {
constructor(props) {
super(props);
this.state = {
video: false,
}
}
render() {
// Footer Component
re... |
renderer/components/Lnurl/LnurlWithdrawPrompt.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import { Flex } from 'rebass/styled-components'
import { FormattedMessage } from 'react-intl'
import { Dialog, Heading, Button, DialogOverlay, Text } from 'components/UI'
import { Form } from 'components/Form'
import messages from './messages'
const LnurlWit... |
Skins/VetoccitanT3/Js/React/react-tooltip-master/src/utils/getTipContent.js | ENG-SYSTEMS/Kob-Eye | /**
* To get the tooltip content
* it may comes from data-tip or this.props.children
* it should support multiline
*
* @params
* - `tip` {String} value of data-tip
* - `children` {ReactElement} this.props.children
* - `multiline` {Any} could be Bool(true/false) or String('true'/'false')
*
* @return
* - Strin... |
app/_root/components/Header/index.js | Dmitry-N-Medvedev/motor-collection | import React from 'react';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
import LocaleToggle from '../../../containers/LocaleToggle';
import { TopHeader, TopHeaderNav, TopHeaderLink } from './styles';
class Header extends React.Component { // eslint-disable-line react/prefer-statel... |
client/containers/users/login.js | wuyang910217/meteor-react-redux-base | import React from 'react';
import {useDeps} from 'react-simple-di';
import {composeAll, withTracker, withLifecycle} from 'react-komposer-plus';
import Login from '../../components/users/login';
function composer({context}, onData) {
const user = context().Meteor.user();
if (user) {
const isWechat = user.prof... |
ui/src/containers/Visualisations/components/TimezoneForm.js | LearningLocker/learninglocker | import React from 'react';
import PropTypes from 'prop-types';
import { TimezoneSelector, buildDefaultOptionLabel } from 'ui/components/TimezoneSelector';
/**
* @param {string} props.visualisationId
* @param {string|null} props.timezone - visualisation timezone
* @param {string} props.orgTimezone
* @param {(timezo... |
actor-apps/app-web/src/app/components/activity/UserProfile.react.js | treejames/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
import PeerStore from 'stores/PeerStore';
import DialogStore from 'stores/DialogStore';
import AvatarItem from... |
src/components/Menus/Menu.js | instacart/Snacks | import React from 'react'
import PropTypes from 'prop-types'
import spacing from '../../styles/spacing'
const styles = {
borderRadius: '4px',
backgroundColor: '#ffffff',
boxShadow: '0 3px 10px 0 rgba(0, 0, 0, 0.16), 0 3px 10px 0 rgba(0, 0, 0, 0.23)',
display: 'inline-block',
...spacing.PADDING_Y_XS,
paddin... |
src/scenes/influences/followings/index.js | PowerlineApp/powerline-rn | import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
View,
RefreshControl,
StyleSheet,
TouchableOpacity,
Alert,
Platform
} from 'react-native';
import {
List,
ListItem,
Text,
Content,
Left,
Body,
Right,
Icon,
Thumbnail
} from 'native-base';
import { Ac... |
client/extensions/woocommerce/app/reviews/gravatar.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
/**
* Internal dependencies
*/
import Gravatar from 'components/gravatar';
// The WP comments endpoint and reviews endpoints return different but similar responses.
// This helper component displays a gr... |
src/icons/IosRefreshOutline.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosRefreshOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M364.1,256c0,60-48.5,108.2-108.1,108.2S147.9,315.7,147.9,256c0-59.6,48.5-108.1,108.1-108.1v55.8l96-55.7l-96-64v... |
docs/src/components/Demo/EditorEmbedded/index.js | jpuri/react-draft-wysiwyg | /* @flow */
import React from 'react';
import PropTypes from 'prop-types';
import { Editor } from 'react-draft-wysiwyg';
import Codemirror from 'react-codemirror';
const EditorEmbedded = () => (
<div className="demo-section">
<h3>7. Editor with embedded link</h3>
<div className="demo-section-wrapper">
... |
src/components/Tooltip/TooltipContainer.js | MinisterioPublicoRJ/inLoco-2.0 | import React from 'react'
import Tooltip from './Tooltip'
import { connect } from 'react-redux'
const mapStateToProps = (state) => {
return {
tooltip: state.tooltip,
scrollTop: state.scrollTop,
}
}
const TooltipContainer = connect(
mapStateToProps,
null
)(Tooltip)
export default Toolt... |
components/App.js | arpith/hamelin | import React from 'react';
import { IndexLink } from 'react-router';
import Search from './Search';
import ResultList from './ResultList';
class App extends React.Component {
render() {
const style = {
padding: 10,
fontFamily: 'Bebas Neue Bold',
fontSize: '2em',
lineHeight: 'inherit',
... |
lib/carbon-fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/multiselect/index.js | boquiabierto/wherever-content | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import {
compose,
withHandlers,
branch,
renderComponent,
setStatic
} from 'recompose';
import Select from 'react-select';
import $ from 'jquery';
/**
* The internal dependencies.
*/
import Field from 'fields/com... |
app/redux/containers/Root.prod.js | tidepool-org/blip | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'connected-react-router';
import { ThemeProvider } from 'styled-components';
import baseTheme from '../../themes/baseTheme';
import { history } from '../store/configureStore.prod';
import { ToastProvider }... |
src/Components/Header.js | dylanbathurst/bacon-mobile | import React, { Component } from 'react';
import {AppRegistry, View, StyleSheet, Text, Image} from 'react-native';
export default class Header extends Component {
constructor (props) {
super(props);
this.state = {
qrCode: {
uri: 'https://upload.wikimedia.org/wikipedia/commons/3/38/Qr-code-ver-1... |
frontend/node_modules/recharts/src/cartesian/CartesianGrid.js | justdotJS/rowboat | /**
* @fileOverview Cartesian Grid
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import pureRender from '../util/PureRender';
import { PRESENTATION_ATTRIBUTES, getPresentationAttributes } from '../util/ReactUtils';
@pureRender
class CartesianGrid extends Com... |
tests/react/createContext.js | AgentME/flow | // @flow
import React from 'react';
{
const Context = React.createContext('div');
const {Consumer, Provider} = Context;
class Foo extends React.Component<{}> {
divRef: {current: null | HTMLDivElement} = React.createRef();
render() {
return (
<React.Fragment>
<Provider value='sp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.