path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/common/MessageBlock/index.js | Mrlyjoutlook/cnode-native | import React, { Component } from 'react';
import { View, Text, Button, TouchableOpacity, StyleSheet, StatusBar } from 'react-native';
import { is } from 'immutable';
import Icon from 'react-native-vector-icons/Ionicons';
const styles = StyleSheet.create({
mess: {
backgroundColor: '#fff',
borderTopLeftRadius... |
src/components/Home/index.js | charleslxh/react-temp | import React from 'react';
import './style.css';
class Home extends React.Component {
render() {
return (
<h3>Home Page</h3>
)
}
}
export default Home;
|
src/views/GestionsComponents/Scooters/GestionDesScooters.js | Cruis-R/GestionOutil | import ReactDOM from 'react-dom'
import React, { Component } from 'react';
import { Link } from 'react-router-dom'
import { TabContent, TabPane, Nav, NavItem, NavLink, Modal, ModalHeader, ModalBody, ModalFooter, Button, Progress } from 'reactstrap';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-tab... |
node_modules/@exponent/ex-navigation/src/sliding-tab/ExNavigationSlidingTabItem.js | 15chrjef/mobileHackerNews | import React from 'react';
export default class ExNavigationSlidingTabItem extends React.Component {
render() {
return null;
}
}
|
src/index.js | kevingatera/Eseness | import React, { Component } from 'react';
// import { Component } from 'react-native';
import { Tabs } from './config/router';
class App extends Component {
render() {
return <Tabs />;
}
}
export default App;
|
docs/src/app/components/pages/components/FlatButton/ExampleComplex.js | spiermar/material-ui | import React from 'react';
import FlatButton from 'material-ui/FlatButton';
import FontIcon from 'material-ui/FontIcon';
import ActionAndroid from 'material-ui/svg-icons/action/android';
const styles = {
exampleImageInput: {
cursor: 'pointer',
position: 'absolute',
top: 0,
bottom: 0,
right: 0,
... |
docs/app/Examples/elements/List/Types/ListExampleBasicShorthand.js | koenvg/Semantic-UI-React | import React from 'react'
import { List } from 'semantic-ui-react'
const ListExampleBasicShorthand = () => (
<List items={['Apples', 'Pears', 'Oranges']} />
)
export default ListExampleBasicShorthand
|
app/components/Navigation.js | Sporks/Doc-tor | import React from 'react';
// Top Navigation
import AppBar from 'material-ui/lib/app-bar';
// Button (for icons)
import IconButton from 'material-ui/lib/icon-button';
// Icons
import MenuIcon from 'material-ui/lib/svg-icons/navigation/menu';
import Gear from 'material-ui/lib/svg-icons/action/settings';
module.expo... |
frontend/src/Components/Table/TableBody.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
class TableBody extends Component {
//
// Render
render() {
const {
children
} = this.props;
return (
<tbody>{children}</tbody>
);
}
}
TableBody.propTypes = {
children: PropTypes.node
};
export def... |
src/shared/components/settings/SettingsPage.js | sbekti/path-web-client | import React from 'react'
import ReactDOM from 'react-dom'
import { Link } from 'react-router'
import request from 'superagent'
import Cookies from 'js-cookie'
class SettingsPage extends React.Component {
constructor(props) {
super(props)
this.state = {
address: '',
processing: false,
spo... |
src/lib/DatePickerComponent.android.js | MichaelCereda/react-native-form-generator | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
let { View, StyleSheet, TextInput, Text, DatePickerAndroid} = require('react-native');
import {Field} from './Field';
export class DatePickerComponent extends React.Component{
constructor(props){
super(props);
this.state ... |
src/svg/X.js | skyiea/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
export default function X(props) {
const {width, height, color, shapeRendering, thickness} = props;
let path = '';
let i;
for (i = 0; i <= thickness / 2; ++i) {
path += `M${i} 0 L${width} ${height - i} `;
path += `M${width - i} 0 L0 ${he... |
swipe/src/Deck.js | mrmcduff/native-advanced | import React, { Component } from 'react';
import { Animated, Dimensions, View, PanResponder } from 'react-native';
const SCREEN_WIDTH = Dimensions.get('window').width;
const SWIPE_THRESHOLD = 0.5 * SCREEN_WIDTH;
const SWIPE_OUT_DURATION = 250;
class Deck extends Component {
static defaultProps = {
onSwipeRight:... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | axross/react-router | import React from 'react'
class Assignments extends React.Component {
render() {
return (
<div>
<h3>Assignments</h3>
{this.props.children || <p>Choose an assignment from the sidebar.</p>}
</div>
)
}
}
export default Assignments
|
src/components/square.js | ProstoBoris/ReactMemoryGame | import React, { Component } from 'react';
class Square extends React.Component {
constructor(props) {
super(props);
//this.toggleSquare = this.toggleSquare.bind(this);
}
render() {
let squareNumber = this.props.value;
let addedClass = this.props.visible !== "HIDDEN" ? "show... |
src/modules/NavLink.js | yabadabu/react-playground | // modules/NavLink.js
import React from 'react'
import { Link } from 'react-router'
export default React.createClass({
render() {
return <Link {...this.props} activeClassName="active"/>
}
}) |
src/Field.story.js | prometheusresearch/react-ui | /**
* @flow
*/
import React from 'react';
import {storiesOf} from '@kadira/storybook';
import Field from './Field';
import Input from './Input';
storiesOf('<Field />', module)
.add('Simple', () => <Field label="Label" input={<Input />} />)
.add('Hint', () => <Field label="Label" hint="Hint" input={<Input />} />... |
frontend/src/components/ViewActivities/editActivity.js | googleinterns/SLURP | import React from 'react';
import { Button, Form } from 'react-bootstrap';
import { getField, writeActivity, getRefValue } from './activityfns.js';
import * as DB from '../../constants/database.js'
import { countryList } from '../../constants/countries.js';
import * as time from '../Utils/time.js';
import app from '../... |
actor-apps/app-web/src/app/components/activity/UserProfile.react.js | xiaotaijun/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import classnames from 'classnames';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
im... |
src/year-view.js | mateim24/react-input-calendar | import React from 'react'
import cs from 'classnames'
import moment from 'moment'
import 'moment-range'
import Cell from './cell'
import ViewHeader from './view-header'
module.exports = React.createClass({
propTypes: {
date: React.PropTypes.object,
minDate: React.PropTypes.any,
maxDate: R... |
src/components/DataTable/defaultHeadRenderer.js | propertybase/react-lds | import React from 'react';
import cx from 'classnames';
import { Cell } from '../Table';
/* eslint-disable react/prop-types */
export default ({
dataKey,
onSort,
sortable,
sortBy,
sortDirection,
title,
}) => {
const onClick = sortable ? () => onSort(dataKey) : null;
const classNames = cx({ 'slds-is-so... |
examples/todo/js/components/Todo.js | Shopify/relay | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNES... |
fields/types/location/LocationFilter.js | andreufirefly/keystone | import React from 'react';
import { FormField, FormInput, FormRow, SegmentedControl } from 'elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
function getDefaultValue () {
return {
inverted: INVERTED_OPTIONS[0].value,
street: undefined,
c... |
src/containers/Companies/index.js | leonid/react-template | import React from 'react';
import Breadcrumbs from 'components/Breadcrumbs';
import {Link} from 'react-router/es6';
// import Table from '../../components/Table';
const CompaniesList = React.createClass({
getInitialState: function () {
return {
companies: []
};
},
componentDi... |
auth/src/components/common/Spinner.js | DaveWJ/LearningReact | /**
* Created by david on 2/25/17.
*/
import React from 'react';
import { View, ActivityIndicator } from 'react-native';
const Spinner = ({ size }) => {
return (
<View style={styles.spinnerStyle}>
<ActivityIndicator size={size || 'large'}/>
</View>
);
};
const styles = {
spinnerStyle: {
flex... |
vendor/github.com/dgraph-io/dgraph/dashboard/src/components/Frame.js | go-tin/tin | import React from 'react';
export default class Frame extends React.Component {
render() {
return (
<div>
this is a frame
</div>
);
}
}
|
app/javascript/flavours/glitch/components/spoilers.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
export default
class Spoilers extends React.PureComponent {
static propTypes = {
spoilerText: PropTypes.string,
children: PropTypes.node,
};
state = {
hidden: true,
}
handleSpoilerClick... |
hunt/src/common/components/EventValueInfo.js | StamusNetworks/scirius | import React from 'react';
import PropTypes from 'prop-types';
import { Icon } from 'patternfly-react';
import { OverlayTrigger, Tooltip } from 'react-bootstrap';
import EventIPInfo from '../../components/EventIPInfo';
const EventValueInfo = (props) => {
if (!props.magnifiers) {
return null;
}
if (['src_ip'... |
app/scripts/VerticalTrack.js | hms-dbmi/higlass | import React from 'react';
import MoveableTrack from './MoveableTrack';
import TrackControl from './TrackControl';
const STYLES = {
pointerEvents: 'all',
};
class VerticalTrack extends MoveableTrack {
getControls(isVisible) {
return (
<TrackControl
imgStyleAdd={STYLES}
imgStyleClose={ST... |
src/containers/App.js | liekkas/bd-platform | /**
* Created by liekkas on 16/3/31.
*/
import React from 'react'
import { connect } from 'react-redux'
import { AppHeader, AppFooter } from '../components'
const styles = {
root: {
width: '100%',
height: '100%',
},
content: {
width: '100%',
height: '100%',
paddingTop: '5vh',
}
}
class A... |
src/components/Charts/utils/createG2.js | yangbin1994/react-redux-starter-kit | import G2 from 'g2'
import React from 'react'
let uniqueId = 0;
function generateUniqueId() {
return `rc-g2-${uniqueId++}`;
}
export default function createG2(__operation) {
class Component extends React.Component {
constructor(props, context) {
super(props, context);
this.chart = null;
thi... |
src/components/case-study/single/templates/hulu/mindy-2016.js | adrienhobbs/redux-glow | import React from 'react';
import BaseTemplate from '../base-study-template';
import AboutSection from '../../../content-modules/about.js';
import styles from './mindy.css';
export class Mindy extends BaseTemplate {
static propTypes = {
data: React.PropTypes.object
};
constructor (props) {
super(props);
... |
src/components/TableGenerator/index.js | jtmckay/TQL | import React from 'react'
import styled from 'styled-components'
import * as styles from 'styles'
import originalStyledInput from 'components/StyledInput'
const StyledInput = styled(originalStyledInput)`
width: 80px;
`
const StyledTableGenerator = styled.div`
display: flex;
flex-direction: column;
inp... |
examples/src/components/Page.js | tkloht/react-video-cover | import React from 'react';
import PropTypes from 'prop-types';
import NavBar from './NavBar';
import css from '../pages/styles.module.css';
const propTypes = {
children: PropTypes.element,
};
const App = props => (
<div className={css.App}>
<NavBar />
<div className={css.Content}>
{props.children}
... |
src/scripts/Channel.js | whoisandie/yoda | 'use strict';
import React from 'react';
import PlaylistHeader from './PlaylistHeader';
import PlaylistVideos from './PlaylistVideos';
export default React.createClass({
propTypes: {
playlists: React.PropTypes.array.isRequired
},
renderPlaylists(playlist) {
return (
<div key={playlist.get('id')} ... |
src/internal/ClickListener.js | joshblack/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';
/**
* Generic component used for reacting to a click event happening outside... |
src/ButtonToolbar.js | Firfi/meteor-react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ButtonToolbar = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'button-toolbar'
};
},
render() {
let classes = this.getBsClassSet();
... |
ui/src/js/offer/ProjectOfferPage.js | Dica-Developer/weplantaforest | import React, { Component } from 'react';
import ProjectOffer from './ProjectOffer';
import ThanksForOffer from './ThanksForOffer';
require('./projectOffer.less');
export default class ProjectOfferPage extends Component {
constructor() {
super();
this.state = {
thankYou: false
};
}
setThankYo... |
src/hocs/toJS.js | tibotiber/rd3 | // see http://redux.js.org/docs/recipes/UsingImmutableJS.html#use-a-higher-order-component-to-convert-your-smart-components-immutablejs-props-to-your-dumb-components-javascript-props
import React from 'react'
import {Iterable} from 'immutable'
const toJS = WrappedComponent => wrappedComponentProps => {
const KEY = 0... |
src/js/components/Media.js | amalbose/axa-media | import React from 'react';
const uuidV4 = require('uuid/v4');
const ipc = require('electron').ipcRenderer
import MovieDetails from './MovieDetails';
export default class Media extends React.Component {
playVideo(){
ipc.send('open-movie', this.props.mediaItem.absPath)
}
render() {
const ... |
src/svg-icons/notification/event-busy.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationEventBusy = (props) => (
<SvgIcon {...props}>
<path d="M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V... |
packages/showcase/misc/label-series-example.js | uber/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
assets/javascripts/kitten/components/structure/cards/summary-card/components/title-bar.js | KissKissBankBank/kitten | import React from 'react'
import classNames from 'classnames'
import PropTypes from 'prop-types'
import { Text } from '../../../../typography/text'
import { StyledSummaryTitles } from '../styles'
export const TitleBar = ({ className, values, size, id, type }) => {
const { image, ...valuesRest } = values
return (
... |
packages/ui-toolkit/src/form/base/toggle.js | yldio/joyent-portal | import React from 'react';
import styled from 'styled-components';
import { Broadcast, Subscriber } from 'joy-react-broadcast';
import { Input } from 'normalized-styled-components';
import remcalc from 'remcalc';
import is, { isNot } from 'styled-is';
import rndId from 'rnd-id';
import isUndefined from 'lodash.isundefi... |
src/svg-icons/action/home.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHome = (props) => (
<SvgIcon {...props}>
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
</SvgIcon>
);
ActionHome = pure(ActionHome);
ActionHome.displayName = 'ActionHome';
ActionHome.muiName = 'SvgIcon... |
src/components/Combobox/components/DropdownItems/BaseDropdownItem.js | propertybase/react-lds | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import { Icon } from '../../../Icon';
import { DropdownItemCore } from './DropdownItemCore';
import { defaultHighlighter } from '../../utils/helpers';
export const BaseDropdownItem = (props) => {
const {
highlight,
ic... |
src/containers/KnowledgePage/KnowledgePage.js | armaniExchange/work-genius | import React, { Component } from 'react';
class KnowledgePage extends Component {
render() {
return (
<div className="knowledge-page">
{ this.props.children }
</div>
);
}
}
export default KnowledgePage;
|
app/app.js | ibourke/intro-to-react | import React, { Component } from 'react';
import Meter from './meter';
import Gauge from './gauge';
class App extends Component {
constructor() {
super();
this.state = {
freq: 50
};
}
componentDidMount() {
setInterval(this.updateFrequency.bind(this), 1000);
... |
templates/rubix/demo/src/routes/Dropdowns.js | jeffthemaximum/Teachers-Dont-Pay-Jeff | import React from 'react';
import {
Row,
Col,
Grid,
Panel,
Button,
MenuItem,
PanelBody,
PanelHeader,
ButtonGroup,
SplitButton,
ButtonToolbar,
PanelContainer,
DropdownButton,
SplitHoverButton,
DropdownHoverButton,
} from '@sketchpixy/rubix';
class DropdownsAndDropups extends React.Compone... |
front/app/js/components/ContentRow.js | nudoru/learning-map | import React from 'react';
import {contentLinkWithId, contentTitleToLink} from '../store/selectors';
import {Tag, TagHGroup} from '../rh-components/rh-Tag';
import {StatusRibbonLeft, StatusRibbonTop} from "./StatusRibbon";
import {XAPILink} from "./xAPILink";
import {XAPIToggle} from "./xAPIToggle";
import {XAPITextAre... |
src/components/Header/CreatePlaylist.js | neyko5/BalistosNative | import React from 'react';
import PropTypes from 'prop-types';
class CreatePlaylist extends React.Component {
constructor(props) {
super(props);
this.state = {
title: '',
description: '',
};
this.handleChange = this.handleChange.bind(this);
this.handleSubmit = this.handleSubmit.bind(... |
src/svg-icons/maps/directions-transit.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsTransit = (props) => (
<SvgIcon {...props}>
<path d="M12 2c-4.42 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.... |
src/ReactBoilerplate/Scripts/containers/Manage/Security/Security.js | theonlylawislove/react-dot-net | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { loadSecurity, destroySecurity, setTwoFactor } from 'redux/modules/manage';
import { Spinner } from 'components';
import { Alert, Button } from 'react-bootstrap';
class Security extends Component {
constructor(props) {
super... |
app/javascript/mastodon/features/standalone/compose/index.js | PlantsNetwork/mastodon | import React from 'react';
import ComposeFormContainer from '../../compose/containers/compose_form_container';
import NotificationsContainer from '../../ui/containers/notifications_container';
import LoadingBarContainer from '../../ui/containers/loading_bar_container';
import ModalContainer from '../../ui/containers/mo... |
tests/react_custom_funs/create_element.js | jamesgpearce/flow | // @flow
import React from 'react';
declare var any: any;
React.createElement(); // Error: Needs a minimum of two arguments.
React.createElement('div'); // OK
React.createElement(42); // Error: Number is not a valid component type.
React.createElement('div', {}); // OK
React.createElement(42, {}); // Error: Number i... |
config/flow/definitions/react.js | hasznosl/truth-cv-frontend | /* @flow */
// Note: we already have the definitions from
// https://github.com/facebook/flow/blob/master/lib/react.js
// so the below are merely helpful extensions
import React from 'react';
declare type $React$Element = React.Element<*>;
declare type $React$Node = string | number | $React$Element | Array<$React$E... |
frontend/src/Components/Page/PageContentBody.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import OverlayScroller from 'Components/Scroller/OverlayScroller';
import Scroller from 'Components/Scroller/Scroller';
import { scrollDirections } from 'Helpers/Props';
import { isMobile as isMobileUtil } from 'Utilities/mobile';
import { is... |
client/components/app.js | LivenUp/livenup | import React, { Component } from 'react';
import { connect } from 'react-redux';
import NavBar from './navbar';
import SpaceCreator from "../containers/spaceCreator";
import Footer from './footer';
export default class App extends Component {
//{this.props.children} will render component based on the route in client... |
generators/component/templates/4/components/StatelessNoStyles.js | newtriks/generator-react-webpack | import React from 'react';
const <%= component.className %> = () => (
<div className="<%= style.className %>">
Please edit <%= component.path %><%= component.fileName %> to update this component!
</div>
);
<%= component.className %>.displayName = '<%= component.displayName %>';
<%= component.className %>.prop... |
app/javascript/mastodon/features/followers/index.js | masarakki/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import LoadingIndicator from '../../components/loading... |
src/parser/shared/modules/AlwaysBeCastingHealing.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { formatPercentage } from 'common/format';
import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting';
import { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import Statistic from 'interface/statistics/Statistic';
import Gauge from 'interface/statistics/componen... |
packages/ringcentral-widgets-docs/src/app/pages/Components/DialButton/Demo.js | u9520107/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import DialButton from 'ringcentral-widgets/components/DialButton';
const props = {};
props.btn = {
value: '1'
};
/**
* A example of `DialButton`
*/
const DialButtonDemo = () => (
<div style={{
height: '100px',
width: '100px',
}}>
<DialButton
... |
Demo/app/Demo1.js | suffle/react-native-zoombox | /**
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
TouchableHighlight,
Image,
Text,
View
} from 'react-native';
import ZoomBox from 'react-native-zoombox';
class Demo1 extends Component {
_goBack() {
this.props.navigator.pop();
}
render() {
return (
<View st... |
imports/ui/pages/About.js | lizihan021/SAA-Website | import React from 'react';
import { Grid, Row, Col, FormGroup, ControlLabel, FormControl, Button, Thumbnail, Image} from 'react-bootstrap';
const About= () => (
<div className="About">
<h2 className="page-header">Our mission:</h2>
<p className="mission">As the official student organization recognized by both uni... |
src/components/Notification/a11yIconWarningSolid.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 React from 'react';
const a11yWarningIcon = (prefix, notificationType) => (
<svg
className={`${prefix}--${notificationType}-not... |
src/svg-icons/image/blur-circular.js | IsenrichO/mui-with-arrows | 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... |
src/client/app/toolbar/users/Users.view.js | jackrzhang/boardsession | import React, { Component } from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import User from './User';
class Users extends Component {
render() {
return (
<div>
{this.props.otherUsers.valueSeq().toArray().map(user => (
<User
key={user.get('username')... |
ui/src/containers/enquiryContainer.js | jollopre/mps | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Edit from '../components/enquiries/edit';
class EnquiryContainer extends Component {
render() {
const { enquiry, product } = this.props;
if (enquiry && product) {
return (<Edit enquiry={enquiry} product={product} />);
}
... |
website/src/pages/components/home/WhereNext.js | frontyard/keystone | import React, { Component } from 'react';
import { compose } from 'glamor';
import Link from 'gatsby-link';
import Container from '../../../../components/Container';
import { Col, Row } from '../../../../components/Grid';
import { color } from '../../../../theme';
export default class ValueProps extends Component {
r... |
src/svg-icons/hardware/toys.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareToys = (props) => (
<SvgIcon {...props}>
<path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 2... |
plugins/Comments/components/Comments.js | synthesis-js/react-synthesis | // Comment.js
import React from 'react';
import CommentForm from './CommentForm';
class Comment extends React.Component {
constructor(props) {
super(props);
this.state = {
postId: this.props.postData._id,
comments: [],
commentInput: '',
authorInput: ''
}
this.getCommentsFromDB = ... |
src/components/WebResults/WebResults.js | nicolas-adamini/littleblue | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { webSearch } from '../../redux/actions/index';
import LinkCard from './LinkCard';
import TotalResults from './TotalResults';
import AsideImages from './AsideImages';
import InlineImages f... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/CloseButton.js | JamieMason/npm-cache-benchmark | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import * as PropTypes from 'prop-types';
import React from 'react';
var propTypes = {
label: PropTypes.... |
examples/universal/server/server.js | alucic/redux | /* eslint-disable no-console, no-use-before-define */
import path from 'path';
import Express from 'express';
import qs from 'qs';
import React from 'react';
import { Provider } from 'react-redux';
import configureStore from '../common/store/configureStore';
import App from '../common/containers/App';
import { fetch... |
style-guide/src/pages/otkit-icons.js | lastquestion/design-tokens | import React from 'react';
import _ from 'lodash';
import SectionHeader from '../components/section-header';
import icons from 'otkit-icons/token.common';
import styles from '../styles/otkit-icons.module.css';
const Icons = () => {
const { iconSize } = icons;
const keys = _.keys(icons).sort();
const actualIcons... |
src/views/Comment/CommentAvatar.js | shengnian/shengnian-ui-react | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
createHTMLImage,
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
/**
* A comment can contain an image or avatar.
*/
function CommentAvatar(props) {
const { className, src } = pr... |
components/popover/src/story.js | fi11/uikit | import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, boolean, text, number } from '@storybook/addon-knobs';
import Popover from './index';
import StateProvider from '@uikit/state-provider';
import BaseTail from '@uikit/tail';
import { PlacerContext } from '@uikit/placer';
const ... |
templates/rubix/laravel/laravel-example/src/main.js | jeffthemaximum/Teachers-Dont-Pay-Jeff | import React from 'react';
import ReactDOM from 'react-dom';
import routes from './routes';
import render, { setRoutes } from '@sketchpixy/rubix/lib/others/router';
import { isBrowser } from '@sketchpixy/rubix';
if (isBrowser()) {
render(routes, () => {
console.log('Completed rendering!');
});
if (module.h... |
src/containers/auth/WelcomeScreen.js | meetfranz/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { inject, observer } from 'mobx-react';
import Welcome from '../../components/auth/Welcome';
import UserStore from '../../stores/UserStore';
import RecipePreviewsStore from '../../stores/RecipePreviewsStore';
export default @inject('... |
src/client.js | anztrax/simple-image-server-frontend | import React from 'react'
import { render } from 'react-dom'
import { Router, browserHistory } from 'react-router'
import routes from './routes'
render(
<Router routes={routes} history={browserHistory} />,
document.getElementById('app')
);
|
lib/site/home-forum/topic-card/component.js | lomegor/DemocracyOS-App | import React from 'react'
import { Link } from 'react-router'
import t from 't-component'
import topicStore from 'lib/stores/topic-store/topic-store'
export default ({ topic }) => (
<Link
to={topic.url}
className='topic-card'>
<div
className='topic-cover'
style={{
backgroundImage: `ur... |
site/util/mdRender.js | quark-ui/quark-ui | import React, { Component } from 'react';
import marked from 'meta-marked';
import endsWith from 'lodash/endsWith';
import uniqueId from 'lodash/uniqueId';
import { transform } from 'babel-standalone';
import * as QuarkUI from '../../src/index';
const EXECUTION_SCOPES = {
React,
...QuarkUI,
};
const renderer = new... |
src/app/src/assets/utils/UnorderedList.js | istreight/eggbeatr | /**
* FILENAME: UnorderedList.js
* AUTHOR: Isaac Streight
* START DATE: May 31th, 2018
*
* This file contains the UnorderedList class, a utility class for
* unordered list tags in the application.
*/
import React from 'react';
import PropTypes from 'prop-types';
import ListItem from 'utils/ListItem';... |
src/components/Footer.js | liron-navon/liron-navon.github.io | import React from 'react'
import { Link } from 'gatsby'
import logo from '../img/logo.svg'
import facebook from '../img/social/facebook.svg'
import instagram from '../img/social/instagram.svg'
import twitter from '../img/social/twitter.svg'
import vimeo from '../img/social/vimeo.svg'
const Footer = class extends Reac... |
src/component.js | tictail/tide | import React from 'react'
import PropTypes from 'prop-types'
import shallowEqual from 'shallowequal'
import mapValues from 'lodash.mapvalues'
import Tide from './base'
const NOT_KEY_PATH_PROPS = [
'children',
'tide',
'tideOptions',
'key',
'ref',
]
function omit(object, func) {
return Object.keys(object).r... |
src/Parser/Shaman/Elemental/Modules/Features/ProcTracker.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import CoreCooldownThroughputTracker, { BUILT_IN_SUMMARY_TYPES } from 'Parser/Core/Modules/CooldownThroughputTracker';
import Tab from 'Main/Tab';
import CooldownOverview from 'Main/CooldownOverview';
class ProcTracker extends CoreCooldownThroughputTrac... |
src/components/comment_box.js | AikChun/react-redux-testing | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../actions/index';
class CommentBox extends Component {
constructor(props) {
super(props);
this.state = { comment: '' };
}
handleChange(event) {
this.setState({ comment: event.target.value });
}
hand... |
src/components/Weather/Weather.js | Mikosko/EimPanel | /**
* @Author: Miloš Kolčák
* @Date: 2017-01-04T15:32:41+01:00
* @Email: milos.kolcak@gmail.com
* @Last modified by: Miloš Kolčák
* @Last modified time: 2017-01-10T13:26:40+01:00
*/
import React from 'react'
import style from './style.scss'
import ComponentWrapper from '../ComponentWrapper'
const _icon = ['sun'... |
src/basic/H2.js | chaitanya0bhagvan/NativeBase | import React, { Component } from 'react';
import { Text } from 'react-native';
import { connectStyle } from 'native-base-shoutem-theme';
import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames';
class H2 extends Component {
render() {
return (
<Text ref={c => this._root = c} {...this.props} />
... |
src/containers/Profile.js | Seeingu/medium-demo | /*
用户信息
*/
import React, { Component } from 'react';
import styled from 'styled-components';
import { Banner, MainContainer, media, RootContainer } from '../styles';
import { Header, Loading, FeedToggle, ArticlePreview } from '../components';
import { connect } from 'react-redux';
import { fetchArticles, ver... |
src/client/components/Drop.js | RossCasey/SecureDrop | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as actionCreators from '../actions';
import {AWAITING_PASSWORD, DECRYPTED, UNRECOVERABLE} from '../constants/dropStates';
import Error from './Error';
import PasswordEntry from './Passwo... |
src/svg-icons/editor/format-line-spacing.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatLineSpacing = (props) => (
<SvgIcon {...props}>
<path d="M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6V7zm4-2v2h12V5H10zm0 14h12v-2H10v2zm0-6h12v-2H10v2z"/>
</SvgIcon>
);
EditorFormatLineSpacing =... |
docs/src/app/pages/components/Page.js | GetAmbassador/react-ions | import React from 'react'
import Snippet from '../../modules/Snippet'
import { Alert } from 'react-ions/lib/components/Alerts'
import buttonExampleSnippet from '!raw!./Buttons/ExampleButtonDefault'
import inputExampleSnippet from '!raw!./Input/ExampleInputOptClass'
import snippetStyles from 'private/css/snippet'
import... |
app/containers/LinkListContainer/index.js | rjgreaves/finances | /*
*
* LinkListContainer
*
*/
import React from 'react';
import { connect } from 'react-redux';
import selectLinkListContainer from './selectors';
import LinkList from '../../components/LinkList';
import { requestLinks, startAdd } from './actions';
export class LinkListContainer extends React.Component { // eslin... |
src/components/LinkButton/index.js | cantonjs/re-admin |
import React, { Component } from 'react';
export default function LinkButton(props) {
return (<a href="#" {...props} />);
}
|
src/components/dummy.js | jackiechoi/redux_weather_app | import React from 'react';
import LineChart from 'britecharts/dist/umd/line.min';
var d3Selection = require('d3-selection');
export default (props) => {
var container = d3Selection.select('.js-chart-container'),
lineChart = new LineChart();
if (container.node()) {
lineChart
.tooltipT... |
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js | jamesbond12/actor-platform | import React from 'react';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import CreateGroupStore from 'stores/CreateGroupStore';
import CreateGroupForm from './create-group/Form.react';
import Modal from 'react-modal';
import { KeyCodes } from 'constants/ActorAppConstants';
const getSt... |
src/client/js/admin/match/actions/Move.js | GoodBoy123/crendorianinvitational | import React from 'react';
import PlayerSelector from './PlayerSelector';
class Move extends React.Component {
constructor(props) {
super(props);
this.state = {
turn: this.props.turn,
index: this.props.index,
type:'move',
player: '',
from:'',
to:''
};
this.handle... |
src/svg-icons/maps/local-cafe.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalCafe = (props) => (
<SvgIcon {...props}>
<path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM2 21h18v-2H2v2z"/>
</SvgIcon>
);
MapsLocalCa... |
node_modules/semantic-ui-react/src/collections/Grid/Grid.js | SuperUncleCat/ServerMonitoring | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
SUI,
useKeyOnly,
useKeyOrValueAndKey,
useTextAlignProp,
useValueAndKey,
useVerticalAlignProp,
useWidthProp,
} from '../../lib'
import GridCol... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.