path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/social/group.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialGroup = (props) => (
<SvgIcon {...props}>
<path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.3... |
packages/mineral-ui-icons/src/IconKitchen.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconKitchen(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}... |
src/components/Header/Header.js | Galernaya20/galernaya20.com | //@flow
import React from 'react'
import styled from 'styled-components'
const Video = styled.div`
width: 300px;
height: 200px;
@media screen and (min-width: 576px) {
width: 500px;
height: 400px;
}
@media screen and (min-width: 768px) {
width: 600px;
height: 400px;
}
@media screen and... |
tosort/2016/jspm/lib_react_004_x.js | Offirmo/html_tests | import React from 'react';
import ReactDOM from 'react-dom';
// https://facebook.github.io/react/docs/reusable-components.html
class CoolComponent extends React.Component {
constructor (props) {
console.info('~~ constructor', arguments)
// TODO define initial state ?
super(props) // <-- really needed ?
}
//... |
docs/src/pages/components/drawers/SwipeableTemporaryDrawer.js | lgollut/material-ui | import React from 'react';
import clsx from 'clsx';
import { makeStyles } from '@material-ui/core/styles';
import SwipeableDrawer from '@material-ui/core/SwipeableDrawer';
import Button from '@material-ui/core/Button';
import List from '@material-ui/core/List';
import Divider from '@material-ui/core/Divider';
import Li... |
examples/with-sentry-simple/pages/_error.js | BlancheXu/test | import React from 'react'
import Error from 'next/error'
import * as Sentry from '@sentry/node'
const MyError = ({ statusCode, hasGetInitialPropsRun, err }) => {
if (!hasGetInitialPropsRun && err) {
// getInitialProps is not called in case of
// https://github.com/zeit/next.js/issues/8592. As a workaround, w... |
hosted-demo/src/components/PokemonCardHeader.js | learnapollo/pokedex-react | import React from 'react'
import { propType } from 'graphql-anywhere'
import gql from 'graphql-tag'
import styled from 'styled-components'
const Title = styled.div`
color: #7F7F7F;
font-size: 32px;
font-weight: 300;
max-width: 400px;
margin-top: 50px;
`
export default class PokemonCardHeader extends React.C... |
src/components/Footer.js | jansplichal2/reactnd-project-readable-starter | import React from 'react';
const Footer = () => {
return (
<footer className="footer">
<p>© Jan Splichal 2017</p>
</footer>
);
};
export default Footer; |
app/components/Institution/InsufficientPermissionMsg.js | klpdotorg/tada-frontend | import React from 'react';
const InsufficientPermissionMsg = () => {
return (
<div>
<div className="alert alert-danger">
<i className="fa fa-lock fa-lg" aria-hidden="true" />
Insufficient Privileges. Please contact administrator for permissions to modify the
institution.
</div... |
packages/material-ui-icons/src/Battery50Sharp.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M17 4h-3V2h-4v2H7v9h10V4z" /><path d="M7 13v9h10v-9H7z" /></React.Fragment>
, 'Battery50Sharp');
|
src/components/Text/index.js | khankuan/asset-library-demo | import cx from 'classnames';
import React from 'react';
export default class Text extends React.Component {
static propTypes = {
children: React.PropTypes.node,
bold: React.PropTypes.bool,
italics: React.PropTypes.bool,
underline: React.PropTypes.bool,
size: React.PropTypes.string,
padding: ... |
src/components/ActivePlayerPage/ActivePlayerPage.js | RetroGameNight/rgn-ui | /*
* Retro Game Night
* Copyright (c) 2015 Sasha Fahrenkopf, Cameron White
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import './ActivePlayerPage.less'
import React from 'react'
import FluxComponent from 'flummox/component'
i... |
fields/types/number/NumberField.js | pr1ntr/keystone | import React from 'react';
import Field from '../Field';
import { FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'NumberField',
statics: {
type: 'Number',
},
valueChanged (event) {
var newValue = event.target.value;
if (/^-?\d*\.?\d*$/.test(newValue)) {
this.props.onChange({
... |
src/svg-icons/file/cloud-queue.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudQueue = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.9... |
frontends/xcms/app/routes.js | suryakencana/niimanga | /** @flow */
import React from 'react';
import { Route, DefaultRoute, NotFoundRoute } from'react-router';
import App from 'handlers';
import Index from 'handlers/Home';
import Group from 'handlers/Group';
import Series from 'handlers/Series';
import SeriesPage from 'handlers/Series/page';
import Chapters from 'handler... |
actor-apps/app-web/src/app/index.js | x303597316/actor-platform | import crosstab from 'crosstab';
import React from 'react';
import Router from 'react-router';
import Raven from 'utils/Raven'; // eslint-disable-line
import isMobile from 'utils/isMobile';
import ReactMixin from 'react-mixin';
import Intl from 'intl'; // eslint-disable-line
import LocaleData from 'intl/locale-data/j... |
src/events/event-host.js | FederationOfFathers/ui | import React, { Component } from 'react';
import moment from 'moment-timezone';
import InputMoment from 'input-moment';
import '../input-moment.css'
class EventHost extends Component {
constructor(props) {
super(props)
// 🤷🏽♂️ somethign about getting the time/dams. ported from original. ask DK
var initialM... |
client/modules/App/__tests__/App.spec.js | trantuthien/React-Test | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { shallow, mount } from 'enzyme';
import { App } from '../App';
import styles from '../App.css';
import { intlShape } from 'react-intl';
import { intl } from '../../../util/react-intl-test-helper';
import { toggleAddPost } from '../App... |
app/components/App.js | kensworth/Filebrew | import React, { Component } from 'react';
import WebTorrent from 'webtorrent';
import dragDrop from 'drag-drop';
import GitHub from 'react-icons/lib/fa/github';
import styles from '../styles/App.css';
import coffee from '../../images/coffee.png';
import Receive from './Receive';
import LinkArea from './LinkArea';
impor... |
src/js/components/Box/stories/Background.js | HewlettPackard/grommet | import React from 'react';
import { Grommet, Box, Text } from 'grommet';
import { grommet } from '../../../themes';
export const BackgroundBox = () => (
<Grommet theme={grommet}>
<Box pad="small" gap="small" align="start">
<Box
pad="small"
background={{ color: 'brand', opacity: true }}
... |
app/containers/DebugPage.js | soosgit/vessel | // @flow
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { Redirect } from 'react-router';
import { connect } from 'react-redux';
import { Button, Table } from 'semantic-ui-react';
import MenuBar from './MenuBar';
import ContentBar from '../components/ContentBar';
import *... |
src/modules/texts/components/ReadingEnvironment/ReadingEnvironment.js | cltk/cltk_frontend | import React from 'react';
import { Link } from 'react-router';
import './ReadingEnvironment.css';
const ReadingEnvironment = ({
textNodes, id, english_title, original_title, slug, textLocationPrev, textLocationNext
})=> {
if (!id) {
return null;
}
return (
<div className="readingEnvironment">
<div
... |
WebDev/BE/JS/electron/chatApp/src/Pages/NotFound/NotFound.js | ParkDyel/practice | import React, { Component } from 'react';
export default class NotFound extends Component {
render(){
return(
<div>
<h1>Not Found, 404</h1>
</div>
)
}
}
|
dpxdt/server/static/release-config/src/index.js | bslatkin/dpxdt | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
examples/react/CheckboxWithLabel.js | mpontus/jest | // Copyright 2004-present Facebook. All Rights Reserved.
import React from 'react';
export default class CheckboxWithLabel extends React.Component {
constructor(props) {
super(props);
this.state = {isChecked: false};
// bind manually because React class components don't auto-bind
// http://facebook... |
docs/src/app/components/pages/components/AutoComplete/ExampleSimple.js | nathanmarks/material-ui | import React from 'react';
import AutoComplete from 'material-ui/AutoComplete';
export default class AutoCompleteExampleSimple extends React.Component {
constructor(props) {
super(props);
this.state = {
dataSource: [],
};
}
handleUpdateInput = (value) => {
this.setState({
dataSourc... |
client/pages/examples/threejs/graphing/elements/pendulum.js | fdesjardins/webgl | import React from 'react'
import * as THREE from 'three'
import { createAxes, createPoint, addControls, addAxesLabels } from '../utils'
const WHITE = 0xffffff
const BLACK = 0x000000
const setupCamera = ({ domain, margin }) => {
const camera = new THREE.OrthographicCamera(
domain[0] - margin[0],
domain[1] +... |
node_modules/@material-ui/core/es/Card/Card.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import Paper from '../Paper';
import withStyles from '../styles/withStyles';
exp... |
src/client/hocs/require_unauth.js | ap-o/intro | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Redirect } from 'react-router';
import PropTypes from 'prop-types';
export default function(ComposedComponent) {
class RequireUnAuth extends Component {
static propTypes = {
authenticated : PropTypes.bool.isRequired
... |
frontend/src/Settings/Indexers/Restrictions/RestrictionsConnector.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { deleteRestriction, fetchRestrictions } from 'Store/Actions/settingsActions';
import createTagsSelector from 'Store/Selectors/createTagsSelector';
impor... |
examples/admin/pages/About.js | minwe/amazeui-react | import React from 'react';
import PageContainer from '../components/PageContainer';
const About = React.createClass({
render() {
return (
<PageContainer
{...this.props}
>
<h2>系统信息</h2>
<hr />
<p>只是一个 Amaze UI React 后台模板骨架。欢迎完善。</p>
</PageContainer>
);
}
});... |
public/js/components/class_view_v2.js | AC287/wdi_final_arrowlense2.0_FE | import React from 'react'
import $ from 'jquery'
export default React.createClass({
contextTypes: {
classes: React.PropTypes.object,
userid: React.PropTypes.string,
router: React.PropTypes.object.isRequired,
},
getInitialState: function(){
return {
instructor_firstname: '',
instruct... |
blueprints/view/files/__root__/views/__name__View/__name__View.js | nnti3n/pc-checker-client | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
demo/client/index.js | redux-autoform/redux-autoform-material-ui | import React from 'react';
import { Router } from 'react-router'
import routes from '../shared/routes/Routes';
import configureStore from '../shared/redux/store/Store';
import { Provider } from 'react-redux';
import { syncHistoryWithStore } from 'react-router-redux';
import { browserHistory } from 'react-router'
import... |
src/components/squads/squad-create.js | sunpietro/LeagueManager | import React, { Component } from 'react';
import Form from './squad-form';
import Player from './squad-player';
import DefaultLayout from '../layouts/default';
class SquadCreate extends Component {
constructor(props) {
super(props);
this.state = {
players: []
};
}
upda... |
admin/client/Signin/Signin.js | sendyhalim/keystone | /**
* The actual Sign In view, with the login form
*/
import assign from 'object-assign';
import classnames from 'classnames';
import React from 'react';
import xhr from 'xhr';
import Alert from './components/Alert';
import Brand from './components/Brand';
import UserInfo from './components/UserInfo';
import LoginF... |
src/index.js | vanfvl/JabbaTracker | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { BrowserRouter as Router } from 'react-router-dom';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware ... |
app/javascript/components/Stepper/Stepper.js | SumOfUs/Champaign | /* */
import React, { Component } from 'react';
import Step from './Step';
export default class Stepper extends Component {
changeStep(index) {
if (this.props.currentStep > index) {
this.props.changeStep(index);
}
}
renderStep(step, index) {
const { currentStep } = this.props;
return (
... |
src/Parser/Druid/Restoration/Modules/Traits/EternalRestoration.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import {HOTS_AFFECT... |
front_end/app/components/common/Input.js | DaniGlass/OneStopShop | import React from 'react';
import { TextInput, View, Text } from 'react-native';
const Input = ({ label, value, onChangeText, placeholder, secureTextEntry }) => {
const { inputStyle, labelStyle, containerStyle } = styles;
return (
<View style={containerStyle}>
<Text style={labelStyle}>{label}</Text>
... |
src/containers/Table.js | iX315/cards-react | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import * as tableActions from '../actions/table'
import TableComponent from '../components/Table'
const mapStateToProps = state => {
return {
table: state.currentTable
}
}
const mapDispatchToProps = di... |
src/components/StatsLegend/LegendContainer.js | clhenrick/nyc-crash-mapper | import React from 'react';
export default () => (
<div className="legend-container">
<div className="legend-crash-types">
<ul>
<li>
<span className="type-fatality" />
<p>Fatality</p>
</li>
<li>
<span className="type-injury" />
<p>Injury</p>
... |
packages/icons/src/md/device/GpsOff.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdGpsOff(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M41.88 22C40.96 13.66 34.34 7.04 26 6.12V2h-4v4.12c-2.26.25-4.38.93-6.31 1.94l3 3C20.33 10.38 22.12 10 24 10c7.73 0 14 6.27 14 14 0 1.88-.38 3.67-1.05... |
src/components/drupal/plain-wordmark/DrupalPlainWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './DrupalPlainWordmark.svg'
/** DrupalPlainWordmark */
function DrupalPlainWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className={'DrupalPlai... |
src/native/main.js | TheoMer/Gyms-Of-The-World | // @flow
import type { Action } from '../common/types';
import FBSDK from 'react-native-fbsdk';
import React from 'react';
import ReactNativeI18n from 'react-native-i18n';
import Root from './app/Root';
import configureStorage from '../common/configureStorage';
import configureStore from '../common/configureStore';
imp... |
Inspector/js/screen.js | ymin/WebDriverAgent | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Pro... |
src/components/subjects/BookSubjectForm.js | great-design-and-systems/cataloguing-app | import { LABEL_THESAURUS, LABEL_TYPE_OF_HEADING } from '../../labels/';
import {
getAllSecondIndicatorTopicalTermsForDropDown,
getAllSubjectsForDropDown,
getFirstIndicatorSelector,
getSubjectHeadingsForDropdown
} from '../../selectors/subjectSelectors';
import PropTypes from 'prop-types';
import React from 're... |
app/js/display/App.js | peterugh/react-from-angular | import Globals from 'Globals';
import React from 'react';
class App extends React.Component
{
constructor(props)
{
super(props);
}
render()
{
return (
<div className='App'>
<img src='/images/react.png'/>
<p>React from Angular Boilerplate Success</p>
</div>
);
}
}
ex... |
docs/src/PropTable.js | HPate-Riptide/react-bootstrap | import merge from 'lodash/merge';
import React from 'react';
import Glyphicon from '../../src/Glyphicon';
import Label from '../../src/Label';
import Table from '../../src/Table';
import capitalize from '../../src/utils/capitalize';
function cleanDocletValue(str) {
return str.trim().replace(/^\{/, '').replace(/\}$/... |
libs/transition/index.js | CrazyFork/element-react | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import requestAnimationFrame from 'raf';
export default class Transition extends Component {
constructor(props) {
super(props);
const { children } = props;
this.state = {
children: chil... |
src/CollapseButton/CollapseButton.js | AbhiPrasad/vizi | import React from 'react';
import { Button } from 'reactstrap';
import './CollapseButton.css';
const CollapseButton = ({ children, onClick, isLoading }) => {
if (isLoading) {
return (
<Button
type="button"
onClick={onClick}
className="btn-go"
... |
src/js/components/List.js | odedre/grommet-final | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import SpinningIcon from './icons/Spinning';
import InfiniteScroll from '../utils/InfiniteScroll';
import Selection from '../utils/Sele... |
packages/react-scripts/fixtures/kitchensink/src/index.js | ontruck/create-react-app | /**
* 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 ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById(... |
app/components/magnetopause/MagnetopauseMapY.js | sheldhur/Vector | // @flow
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { NoDataAlert } from '../widgets/ChartAlert';
import LineChart from '../chart/LineChart';
import MagnetopauseMapMenu from './MagnetopauseMapMenu';
import { magnetopausePoint } from '../../lib/geopack';
import { numberIsBetween... |
src/svg-icons/device/battery-90.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery90 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h10V5.33z"/><path d="M7 8v12.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1... |
src/compos/AudioMessage.js | Blacktoviche/RNChat | import React, { Component } from 'react';
import {
StyleSheet,
View,
} from 'react-native';
import {
Icon, Button, Text
} from 'native-base';
import * as Progress from 'react-native-progress';
import Sound from 'react-native-sound';
export default class AudioMessage extends Component {
constructor(pro... |
frontend/src/components/task/task-interested.js | worknenjoy/gitpay | import React from 'react'
import Avatar from '@material-ui/core/Avatar'
import AvatarGroup from '@material-ui/lab/AvatarGroup'
export default function TaskInterested ({ assigns }) {
return (
<AvatarGroup max={ 4 }>
{ assigns && assigns.map(a => <Avatar alt={ a.User && a.User.name } src={ a.User && a.User.p... |
src/svg-icons/social/mood.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialMood = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 ... |
index.web.js | johannessiig/clac | import React from 'react'
import ReactDOM from 'react-dom'
import Routes from './src/client/components/Routes';
import {Provider} from 'react-redux';
import Index from './src/client/components/Index/Index';
import configureStore from './src/client/configureStore';
const store = configureStore('web');
store.dispatch({t... |
app/utils/SlateEditor/HRule.js | GolosChain/tolstoy | import React from 'react'
export default class HRule extends React.Component {
render() {
const { node, state } = this.props
const isFocused = state.selection.hasEdgeIn(node)
const className = isFocused ? 'active' : null
return <hr className={className} />
}
}
|
generators/js-framework/modules/react/components/Account/Profile.js | sahat/boilerplate | import React from 'react';
import { connect } from 'react-redux'
import { updateProfile, changePassword, deleteAccount } from '../../actions/auth';
import { link, unlink } from '../../actions/oauth';
import Messages from '../Messages';
class Profile extends React.Component {
constructor(props) {
super(props);
... |
app/components/moviespanel.js | shrihari/moviemonkey |
import React from 'react'
import ReactDOM from 'react-dom'
import Movie from './movie.js'
export default class MoviesPanel extends React.Component {
constructor(props) {
super(props);
}
render() {
var t = this;
var movies = this.props.data.map(function(movie) {
return (
<Movie data={m... |
src/components/DataTable/TableSelectRow.js | carbon-design-system/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import PropTypes from 'prop-types';
import React from 'react';
import InlineCheckbox from '../InlineCheckbox';
import RadioButton from '../Ra... |
src/svg-icons/action/zoom-in.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionZoomIn = (props) => (
<SvgIcon {...props}>
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1... |
actor-apps/app-web/src/app/components/sidebar/RecentSectionItem.react.js | alihalabyah/actor-platform | import React from 'react';
import classNames from 'classnames';
import DialogActionCreators from 'actions/DialogActionCreators';
import DialogStore from 'stores/DialogStore';
import AvatarItem from 'components/common/AvatarItem.react';
class RecentSectionItem extends React.Component {
static propTypes = {
di... |
demo/index.android.js | vlad-doru/react-native-calendar-datepicker | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class demo extends Component {
render() {
return (
<View style={styles.container}>
<Text sty... |
examples/05 Customize/Drop Effects/Container.js | globexdesigns/react-dnd | import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import SourceBox from './SourceBox';
import TargetBox from './TargetBox';
@DragDropContext(HTML5Backend)
export default class Container extends Component {
render() {
return ... |
app/components/notes/Notes.js | zhentian-wan/ReactApp | import React from 'react';
import Router from 'react-router';
import NoteList from './Noteslist';
import AddNote from './AddNote';
class Note extends React.Component{
render(){
return (
<div>
<h3>Notes for {this.props.username}</h3>
<AddNote
user... |
src/routes.js | lzm854676408/big-demo | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './App.js';
import Home from './components/Home/Home.js';
import About from './components/About/About.js';
import Blog from './components/Blog/Blog.js';
import Post from './components/Blog/Post.js';
export default (
<Route ... |
fields/types/code/CodeField.js | lojack/keystone | import _ from 'underscore';
import CodeMirror from 'codemirror';
import Field from '../Field';
import React from 'react';
import { FormInput } from 'elemental';
/**
* TODO:
* - Remove dependency on underscore
*/
// See CodeMirror docs for API:
// http://codemirror.net/doc/manual.html
module.exports = Field.create... |
src/components/Header/Header.js | mikemunsie/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header extends Compo... |
src/modules/shell/index.js | pborrego/demo-cep-base | import React from 'react';
import Helmet from 'react-helmet';
import { Route, Switch } from 'react-router-dom';
import Header from '../header';
// routing
import routes from '../../routes';
// global application styles
import './styles.css';
function App() {
return (
<div>
<Helmet
... |
nlyyAPP/component/消息中心/MLNewsList.js | a497500306/nlyy_APP | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
Navigator,
ScrollView,
ListView,
Alert,
DeviceEventEmitter,
Modal
} from 'react-native';
import Pickers from 'react-native-picker';
var Dimensions = require('Dimensions'... |
source/client/components/Withdraw.js | NAlexandrov/yaw | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styled from 'react-emotion';
import axios from 'axios';
import errorHandler from './helpers/errorHandler';
import { Card, Title, Button, Island, Input } from './';
const WithdrawTitle = styled(Title)`
text-align: center;
`;
const W... |
assets/js/Home.js | bclynch/packonmybike | import React, { Component } from 'react';
export default class Home extends Component {
render() {
return (
<div>
Pack On My Bike Bitches
</div>
)
}
}
|
src/routes/chart/lineChart/index.js | zhouchao0924/SLCOPY | import React from 'react'
import PropTypes from 'prop-types'
import { Row, Col, Card, Button } from 'antd'
import Container from '../Container'
import {
LineChart,
Line,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Legend,
} from 'recharts'
const data = [
{
name: 'Page A',
uv: 4000,
pv: 2400,
... |
app/javascript/mastodon/features/status/components/action_bar.js | honpya/taketodon | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from '../../../components/icon_button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from 'react-intl';
i... |
src/components/Map.js | samkarp/murmuration | import React from 'react';
import L from 'leaflet';
import Draw from 'leaflet-draw';
let config = {};
config.params = {
center: [39.745, -104.99],
zoom: 14,
minZoom: 2,
maxZoom: 20,
zoomControl: true,
attributionControl: false
};
config.tileLayer = {
uri: 'http://{s}.basemaps.cartocdn.com/dark_all/{z}/... |
frontend/src/components/dialog/sysadmin-dialog/sysadmin-add-repo-dialog.js | miurahr/seahub | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter, Input, Form, FormGroup, Label } from 'reactstrap';
import { gettext } from '../../../utils/constants';
import { seafileAPI } from '../../../utils/seafile-api';
import { Utils } from '../../../util... |
actor-apps/app-web/src/app/components/JoinGroup.react.js | ganquan0910/actor-platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import DialogActionCreators from 'actions/DialogActionCreators';
import JoinGroupActions from 'actions/JoinGroupActions';
import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line
class JoinGroup extends React.Component {
st... |
src/index.js | gcedo/react-bootstrap-ui-builder | import React from 'react';
import UIBuilder from './components/UIBuilder.jsx';
React.render(<UIBuilder />, document.getElementById('root'));
|
local-cli/generator/templates/index.android.js | hayeah/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class <%= name %> extends Component {
render() {
return (
<View style={styles.container}>
<Text style... |
src/svg-icons/hardware/keyboard-return.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardReturn = (props) => (
<SvgIcon {...props}>
<path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"/>
</SvgIcon>
);
HardwareKeyboardReturn = pure(HardwareKeyboardReturn);
Hardware... |
plugins/subschema-plugin-template-object/src/index.js | subschema/subschema-devel | import React, { Component } from 'react';
export class ObjectTemplate extends Component {
static displayName = 'ObjectTemplate';
render() {
const { children, className, fieldAttrs, ...rest } = this.props;
return (<div className={className} {...fieldAttrs}>
{children}
</div>... |
src/svg-icons/communication/call-received.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallReceived = (props) => (
<SvgIcon {...props}>
<path d="M20 5.41L18.59 4 7 15.59V9H5v10h10v-2H8.41z"/>
</SvgIcon>
);
CommunicationCallReceived = pure(CommunicationCallReceived);
CommunicationCa... |
imports/ui/components/Pagination/Pagination.js | hwillson/meteor-solr-demo | /* global window */
/* eslint-disable react/prefer-es6-class */
import React from 'react';
import RcPagination from 'rc-pagination';
import { _ } from 'meteor/underscore';
const Pagination = React.createClass({
propTypes: {
searchMetadata: React.PropTypes.object.isRequired,
searchParams: React.PropTypes.ob... |
node_modules/rc-tabs/es/utils.js | yhx0634/foodshopfront | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import React from 'react';
export function toArray(children) {
// allow [c,[a,b]]
var c = [];
React.Children.forEach(children, function (child) {
if (child) {
c.push(child);
}
});
return c;
}
export function getActiveIndex(chi... |
components/time_picker/Clock.js | KerenChandran/react-toolbox | import React from 'react';
import CssTransitionGroup from 'react-addons-css-transition-group';
import { ZoomIn, ZoomOut } from '../animations';
import style from './style.clock';
import time from '../utils/time';
import Hours from './ClockHours';
import Minutes from './ClockMinutes';
class Clock extends React.Componen... |
src/components/Privacy/Privacy.react.js | uday96/chat.susi.ai | import '../Terms/Terms.css';
import $ from 'jquery';
import Footer from '../Footer/Footer.react';
import PropTypes from 'prop-types';
import StaticAppBar from '../StaticAppBar/StaticAppBar.react';
import React, { Component } from 'react';
class Privacy extends Component {
constructor(props) {
super(props);
... |
packages/shared/ReactSharedInternals.js | yiminghe/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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';
const ReactSharedInternals =
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
// Prevent n... |
3.ArrayDemo/src/ArrayDemo.js | hiren2728/ReactDemo | import React from 'react';
export default class ArrayDemo extends React.Component{
constructor(props){
super(props);
this.state = {
values : [
{"name" : "Hiren"},
{"name" : "Harpla"},
{"name" : "A"},
{"name" : "B"}
... |
components/animals/skunkPruhovany.child.js | marxsk/zobro | import React, { Component } from 'react';
import { Text } from 'react-native';
import styles from '../../styles/styles';
import InPageImage from '../inPageImage';
import AnimalText from '../animalText';
import AnimalTemplate from '../animalTemplate';
const IMAGES = [
require('../../images/animals/skunkPruhovany/01.... |
app/views/FrontPage/Overview/Overview.js | RcKeller/STF-Refresh | import React from 'react'
class Overview extends React.Component {
render () {
return (
<div>
<h2>Technology Fee</h2>
<p>
The Student Technology Fee is a $38 per quarter fee paid by all matriculated students of the University of Washington. The committee appropriates rough... |
app/components/ProgressIndicator.js | RichAbrahams/electron-project | import React from 'react';
import Button from './stc/Button';
import * as colors from '../colors';
import Icon from './stc/Icon';
import H2Centered from './stc/H2-Centered';
import DivCentered from './stc/DivCentered';
function ProgressIndicator(props) {
const { text } = props;
return (
<div className="downlo... |
static/src/components/NotFound.js | agelarry/online_quiz | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as actionCreators from '../actions/auth';
function mapStateToProps(state) {
return {
token: state.auth.token,
userName: state.auth.userName,
isAuthenticated: state.auth.is... |
src/hocs/withD3Renderer.js | tibotiber/rd3 | import React from 'react'
import _ from 'lodash'
import {shallowEqual} from 'recompose'
const withD3Renderer = ({
resizeOn = ['width', 'height'],
updateOn = ['data']
}) => WrappedComponent => {
return class WithD3Renderer extends React.Component {
setRef = wrappedComponentInstance => {
this.component =... |
src/components/with-clear-div.js | sievins/sarahs-footsteps | import React from 'react'
function withClearDiv(element, height = 0) {
const style = {
height,
clear: 'both',
}
return (
<div>
{element}
<div style={style} />
</div>
)
}
export default withClearDiv
|
src/components/gearratioinfo.js | prexsa/m3specs | import React, { Component } from 'react';
import { List } from 'semantic-ui-react';
class GearRatioInfo extends Component {
render() {
return (
<div>
<List bulleted>
<List.Item>Tire Diameter (25.596) - 275/30R19</List.Item>
<List.Item>Final Drive Ratio (3.62)</List.Item>
... |
imports/ui/components/bookmark.js | dklisiaris/boomabu | import React from 'react';
import { Meteor } from 'meteor/meteor';
import {ReactPageClick} from 'react-page-click';
import {
removeBookmark,
refreshBookmark,
updateBookmark,
incBookmarkViews
} from '../../api/bookmarks/methods';
import {can} from '/imports/modules/permissions.js';
import {Loading} from '/import... |
src/layout.js | wi2/auto-admin | "use strict";
import React from 'react'
import Nav from './nav'
export default class {
render() {
return (
<div>
<Nav {...this.props} />
{this.props.children}
</div>
)
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.