path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/app/component/number-field/number-field.story.js | all3dp/printing-engine-client | import React from 'react'
import {storiesOf} from '@storybook/react'
import {withState} from '@dump247/storybook-state'
import NumberField from '.'
storiesOf('NumberField', module)
.add(
'default',
withState({value: 42}, store => (
<NumberField value={store.state.value} onChange={value => store.set({v... |
src/views/people/AddPeople.js | ishgroup/lightbook | import React, { Component } from 'react';
import Config from '../../Config';
import Util from '../../components/Util';
import PeopleModel from '../../model/PeopleModel';
import Validate from '../../components/Validate';
import FormField from '../../components/FormField';
import AutoComplete from '../../components/AutoC... |
client/modules/questions/components/sessionControlBar.js | johngonzalez/abcdapp | import React from 'react';
import NewSession from '../containers/newSession';
import SessionFinish from '../containers/sessionFinish';
import {Button} from 'react-bootstrap';
const SessionControlBar = ({classId, sessionUnfinished}) => (
sessionUnfinished ?
!sessionUnfinished.saving ?
<SessionFinish session... |
node_modules/react-router/es/Link.js | soniacq/LearningReact | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
frontend/src/index.js | swapnalikadam/cloudprint | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/svg-icons/hardware/speaker-group.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSpeakerGroup = (props) => (
<SvgIcon {...props}>
<path d="M18.2 1H9.8C8.81 1 8 1.81 8 2.8v14.4c0 .99.81 1.79 1.8 1.79l8.4.01c.99 0 1.8-.81 1.8-1.8V2.8c0-.99-.81-1.8-1.8-1.8zM14 3c1.1 0 2 .89 2 2s-.9 2-2... |
cheesecakes/plugins/content-manager/admin/src/components/DraggableAttr/index.js | strapi/strapi-examples | /**
*
* DraggableAttr
*/
/* eslint-disable react/no-find-dom-node */
import React from 'react';
import { findDOMNode } from 'react-dom';
import {
DragSource,
DropTarget,
} from 'react-dnd';
import { getEmptyImage } from 'react-dnd-html5-backend';
import { flow } from 'lodash';
import PropTypes from 'prop-types... |
tech_stack/src/components/ListItem.js | victorditadi/IQApp | import React, { Component } from 'react';
import { CardSection } from './common';
import {
Text,
TouchableWithoutFeedback,
View,
LayoutAnimation
} from 'react-native';
import * as actions from '../actions';
import { connect } from 'react-redux';
class ListItem extends Component{
componentWillUpdate(){
La... |
react-demos/shapes/src/index.js | konvajs/site | import React from 'react';
import { createRoot } from 'react-dom/client';
import { Stage, Layer, Rect, Text, Circle, Line } from 'react-konva';
const App = () => {
return (
<Stage width={window.innerWidth} height={window.innerHeight}>
<Layer>
<Text text="Some text on canvas" fontSize={15} />
... |
app/javascript/mastodon/features/ui/components/actions_modal.js | Craftodon/Craftodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContent from '../../../components/status_content';
import Avatar from '../../../components/avatar';
import Relative... |
packages/components/src/MultiSelect/MultiSelect.container.js | Talend/ui | /* eslint-disable react/sort-comp */
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { withTranslation } from 'react-i18next';
import keycode from 'keycode';
import memoizeOne from 'memoize-one';
import theme from './MultiSelect.scss';
import VirtualizedList f... |
app/packs/src/admin/TemplateManagement.js | ComPlat/chemotion_ELN | import React from 'react';
import { Panel, Table, Button, Modal, FormGroup, ControlLabel, Form, Col, ButtonGroup, Tooltip, OverlayTrigger, Popover, FormControl } from 'react-bootstrap';
import ReportTemplateFetcher from '../components/fetchers/ReportTemplateFetcher';
import Dropzone from 'react-dropzone';
import Select... |
src/components/Search.js | Iconscout/logodrop | import React from 'react'
import { connect } from 'react-redux'
import { fetchLogos } from '../actions'
let SearchLogo = ({ dispatch }) => {
let q
return (
<header>
<form
className="form-horizontal"
id="frmSearch"
onSubmit={e => {
e.preventDefault()
dispatch(fetchLogos(q.value))
}}
... |
src/routes/user/User.js | macdja38/pvpsite | import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './User.css';
import Layout from '../../components/Layout';
function User({ user }) {
// let avatarURL = `https://discordapp.com/api/users/${user.id}/avatars/${user.avatar}.j... |
common/components/ide/tabs/InsightsTab.js | ebertmi/webbox | import React from 'react';
import Tab from './Tab';
export default function InsightsTab(props) {
return <Tab {...props} icon="bar-chart">Statistiken</Tab>;
}
|
src/svg-icons/av/skip-previous.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSkipPrevious = (props) => (
<SvgIcon {...props}>
<path d="M6 6h2v12H6zm3.5 6l8.5 6V6z"/>
</SvgIcon>
);
AvSkipPrevious = pure(AvSkipPrevious);
AvSkipPrevious.displayName = 'AvSkipPrevious';
export default A... |
packages/icons/src/memory.js | yldio/joyent-portal | import React from 'react';
import Rotate from './rotate';
import calcFill from './fill';
export default ({
fill = null,
light = false,
disabled = false,
direction = 'down',
colors = {},
style = {},
...rest
}) => (
<Rotate direction={direction}>
{({ style: rotateStyle }) => (
<svg
xml... |
src/components/NavbarHeader.js | planningFor/react-build | import React, { Component } from 'react';
require('../css/NavbarHeader.scss');
/**
* App component is top component of all.
*/
export default class NavbarHeader extends Component {
render() {
return (
<div className="navbar-header">
<div className="navbar-header-img"></div>
... |
frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientModalContent.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Alert from 'Components/Alert';
import FieldSet from 'Components/FieldSet';
import Button from 'Components/Link/Button';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
import ModalBody from 'Components/Modal/ModalBo... |
src/pages/app.js | liamthanrahan/personal-website | import React, { Component } from 'react';
import styles from './index.css'
import classnames from 'classnames'
import NavigationLink from 'components/NavigationLink'
export default class App extends Component {
componentDidMount(){
}
render(){
return (
<div className={styles.container}>
<div ... |
src/js/components/Tags.js | davrodpin/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Box from './Box';
import Props from '../utils/Props';
import CSSClassnames from '../utils/CSSClassnames';
const CLASS_ROOT = CSSClassnames.TAGS;
export default class Tags extends Component {
rende... |
components/container.js | sgmap/inspire | import React from 'react'
import PropTypes from 'prop-types'
const Container = ({children, fluid}) => (
<div style={{
maxWidth: fluid ? null : 1200
}}
>
{children}
<style jsx>{`
div {
position: relative;
width: 100%;
margin: 0 auto;
padding: 0 20px;
disp... |
PullList.js | greatbsky/react-native-pull | 'use strict';
import React, { Component } from 'react';
import { ListView } from 'react-native';
import Pullable from './Pullable';
/**
支持android&ios可以下拉刷新的PullList组件
Demo:
import {PullList} from 'react-native-pullview';
<PullList onPulling={} onPullOk={} onPullRelease={} isPullEnd={true}
topIndicatorRender={({pul... |
src/svg-icons/action/open-with.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionOpenWith = (props) => (
<SvgIcon {...props}>
<path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"/>
</SvgIcon>
);
ActionOpenWith = pure(Act... |
src/svg-icons/maps/local-car-wash.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalCarWash = (props) => (
<SvgIcon {...props}>
<path d="M17 5c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2.7c0 .83.67 1.5 1.5 1.5zm-5 0c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2... |
app/javascript/mastodon/components/media_gallery.js | lynlynlynx/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { is } from 'immutable';
import IconButton from './icon_button';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { isIOS } from '../is_mobile';
import class... |
src/static/containers/DomainDashboard/index.js | CRUDNS/CRUDNS | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as actionCreators from '../../actions/dnsRecordRow';
import * as domainActionCreators from '../../actions/domain';
class DomainDashboard extends React.Component {
static propTypes = {
doma... |
react-ui/src/redux/routes.js | philiWeitz/wifiSniffer |
import React from 'react';
import PropTypes from 'prop-types';
import { Router, Route } from 'react-router';
import AppView from '../modules/app/AppView';
const Routes = ({ history }) => {
return (
<Router history={history}>
<Route path="/" component={AppView} />
</Router>
);
};
/* eslint-disable... |
stories/examples/ListGroup.js | reactstrap/reactstrap | import React from 'react';
import { ListGroup, ListGroupItem } from 'reactstrap';
const Example = (args) => {
return (
<ListGroup {...args}>
<ListGroupItem>Cras justo odio</ListGroupItem>
<ListGroupItem>Dapibus ac facilisis in</ListGroupItem>
<ListGroupItem>Morbi leo risus</ListGroupItem>
... |
client/src/javascript/components/icons/CommentIcon.js | jfurrow/flood | import React from 'react';
import BaseIcon from './BaseIcon';
export default class CommentIcon extends BaseIcon {
render() {
return (
<svg
className={`icon icon--calendar icon--calendar--created ${this.props.className}`}
viewBox={this.getViewBox()}>
<path d="M30,47.7a44.56,44.56,0,... |
client/components/Dynamic/IndexPage.js | Treeeater/expresshome | import React from 'react';
import getMuiTheme from '@material-ui/core/styles/getMuiTheme';
import MuiThemeProvider from '@material-ui/core/styles/MuiThemeProvider';
import { Route, Switch, Redirect } from 'react-router-dom';
import { Base } from './AuthUI/Base';
import { NotFoundPage } from '../NotFoundPage';
import {... |
index.ios.js | cyqresig/ReactNativeComponentDemos | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Navigator,
Text,
TouchableOpacity,
} from 'react-native';
import ReactNativeComponentList from './examples/ios/react-native-component-... |
src/common/ResourceIcon.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import ResourceLink from './ResourceLink';
import Icon from './Icon';
const ResourceIcon = ({ id, noLink, ...others }) => {
if (process.env.NODE_ENV === 'development' && !RESOURCE_TYPES[id]) {
throw n... |
packages/lore-hook-dialogs-bootstrap/src/blueprints/destroy/Optimistic/index.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import Optimistic from './Optimistic';
export default createReactClass({
render: function() {
const { modelName } = this.props;
const {
schema,
fieldMap,
actionMap,
data,
validators,
fields,
... |
app/react/src/client/preview/render.js | jribeiro/storybook | /* global document */
import React from 'react';
import ReactDOM from 'react-dom';
import { stripIndents } from 'common-tags';
import isReactRenderable from './element_check';
import ErrorDisplay from './error_display';
// check whether we're running on node/browser
const isBrowser = typeof window !== 'undefined';
c... |
src/main/js/admin/modules/category/Category.js | chaokunyang/amanda | import React, { Component } from 'react';
import Axios from 'axios'
class Category extends Component {
constructor(props) {
super(props);
this.state = { categories: [] }
}
componentDidMount() {
Axios.get('/api/categories')
.then(response => {
this.setSt... |
docs/src/pages/components/autocomplete/CheckboxesTags.js | lgollut/material-ui | /* eslint-disable no-use-before-define */
import React from 'react';
import Checkbox from '@material-ui/core/Checkbox';
import TextField from '@material-ui/core/TextField';
import Autocomplete from '@material-ui/lab/Autocomplete';
import CheckBoxOutlineBlankIcon from '@material-ui/icons/CheckBoxOutlineBlank';
import C... |
information/blendle-frontend-react-source/app/modules/search/SearchContainer.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import { history } from 'byebye';
import AltContainer from 'alt-container';
import i18n from 'instances/i18n';
import AuthStore from 'stores/AuthStore';
import SearchStore from 'stores/SearchStore';
import TilesStore from 'stores/TilesStore';
import SearchA... |
opentech/static_src/src/app/src/components/ListingGroup.js | OpenTechFund/WebApp | import React from 'react';
import PropTypes from 'prop-types';
import ListingHeading from '@components/ListingHeading';
export default class ListingGroup extends React.Component {
static propTypes = {
children: PropTypes.arrayOf(PropTypes.node),
item: PropTypes.shape({
name: PropTypes... |
linksa/Setting.js | liuhui219/linksa | import React from 'react';
import {
View,
StyleSheet,
Navigator,
TouchableOpacity,
TouchableHighlight,
TouchableNativeFeedback,
Text,
ActivityIndicator,
StatusBar,
ScrollView,
Linking,
BackAndroid,
InteractionManager,
Dimensions,
Image
} from 'react-native';
import Icon from 'react-native-vect... |
actor-apps/app-web/src/app/components/ActivitySection.react.js | hmoraes/actor-platform | import React from 'react';
import classNames from 'classnames';
import { ActivityTypes } from 'constants/ActorAppConstants';
//import ActivityActionCreators from 'actions/ActivityActionCreators';
import ActivityStore from 'stores/ActivityStore';
import UserProfile from 'components/activity/UserProfile.react';
import... |
src/svg-icons/image/linked-camera.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLinkedCamera = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="14" r="3.2"/><path d="M16 3.33c2.58 0 4.67 2.09 4.67 4.67H22c0-3.31-2.69-6-6-6v1.33M16 6c1.11 0 2 .89 2 2h1.33c0-1.84-1.49-3.33-3.33-3.3... |
src/svg-icons/notification/bluetooth-audio.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationBluetoothAudio = (props) => (
<SvgIcon {...props}>
<path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-... |
src/app.js | mushishi78/content-editor | import '../css/normalize.css';
import '../css/octicons.css';
import '../css/loader.css';
import '../css/animations.css';
import '../css/app.css';
import 'babel/polyfill';
import { createStore, combineReducers, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import React from 'react';
import thu... |
src/utils/dataUtils.js | gejialun8888/shop-react | import React from 'react'
import moment from 'moment'
import {Icon} from 'SNRC'
/**
* 判断上升,下降,平衡
* 0平衡
* 1上升
* -1下降
* */
export const pdzf = (str) => {
if(str!=undefined){
if(str===null||str===0){
return <Icon type="minus" />
}else if(str.indexOf('-') === 0){
return <Ic... |
fields/types/file/FileColumn.js | Adam14Four/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var LocalFileColumn = React.createClass({
renderValue: function () {
var value = this.props.data.fields[this.props.col.path];
if (!value || !value.filename) ret... |
src/js/components/Detail.js | Zmingg/qcblog-react | import React, { Component } from 'react';
import style from '../../scss/show.scss';
export default class Detail extends Component {
componentDidUpdate(){
window.scroll(0,0);
}
render(){
if (!this.props.data) {
return (<div></div>)
}
const data = this.props.data;
data.__html = data.cont... |
src/components/Main.js | theCoolKidsJavaScriptMeetup/PeoriaHackathon | import React, { Component } from 'react';
import Header from './Header.js';
import Button from './Button';
import hackathonImage from '../assets/peoria-hackathon.jpg';
export default class Main extends Component {
render() {
return (
<div className="color-cover">
<Header />
<div className="Co... |
fields/types/boolean/BooleanColumn.js | riyadhalnur/keystone | import React from 'react';
import classnames from 'classnames';
import Checkbox from '../../../admin/client/components/Checkbox';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
var BooleanColumn = React.creat... |
app/app.js | stanfordv/curriculum1 | import React from 'react';
import ReactDOM from 'react-dom';
import Modal from 'react-modal';
import { ExportJSON, ImportJSON, loadData, readFile, postData, deleteNode, editNode, deleteLink, editLink } from './utils';
import TopBar from './toolbars/TopBar';
import Tree from './Tree';
import FooterBar from './toolbars... |
src/PageHeader.js | HorizonXP/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const PageHeader = React.createClass({
render() {
return (
<div {...this.props} className={classNames(this.props.className, 'page-header')}>
<h1>{this.props.children}</h1>
</div>
);
}
});
export default PageHeader;
|
src/Image.js | victorzhang17/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Image = React.createClass({
propTypes: {
/**
* Sets image as responsive image
*/
responsive: React.PropTypes.bool,
/**
* Sets image shape as rounded
*/
rounded: React.PropTypes.bool,
/**
* Sets imag... |
docs/src/examples/modules/Sidebar/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import Examples from './Examples'
import States from './States'
import Types from './Types'
import Usage from './Usage'
const SidebarExamples = () => (
<div>
<Types />
<States />
<Examples />
<Usage />
</div>
)
export default SidebarExamples
|
server/sonar-web/src/main/js/components/controls/GlobalMessages.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
node_modules/react-bootstrap/es/CarouselItem.js | vitorgomateus/NotifyMe | 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 ... |
packages/web/src/pages/work/[lang]/[slug].js | dvaJi/ReaderFront | import React from 'react';
import gql from 'graphql-tag';
import { Container } from 'reactstrap';
import Head from "next/head";
import { useRouter } from 'next/router';
import { useQuery } from '@apollo/client';
import useIntl from '@hooks/use-intl';
import { getImage } from '@components/Image';
import Cover from '@c... |
src/parser/hunter/marksmanship/modules/features/Checklist.js | FaideWW/WoWAnalyzer | import React from 'react';
import CoreChecklist, { Rule, Requirement } from 'parser/shared/modules/features/Checklist';
import Abilities from 'parser/core/modules/Abilities';
import { PreparationRule } from 'parser/shared/modules/features/Checklist/Rules';
import { GenericCastEfficiencyRequirement } from 'parser/share... |
app/components/agent/Jobs/row.js | buildkite/frontend | // @flow
import React from 'react';
import Relay from 'react-relay/classic';
import FriendlyTime from 'app/components/shared/FriendlyTime';
import JobState from 'app/components/icons/JobState';
import JobTitle from 'app/components/shared/JobTitle';
import Panel from 'app/components/shared/Panel';
type Props = {
jo... |
src/parser/druid/guardian/modules/talents/Earthwarden.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import HIT_TYPES from 'game/HIT_TYPES';
import Analyzer from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import DamageTaken from 'parser/shared/modules/DamageTaken';
import StatisticBox from 'interface/others... |
src/js/components/members/newMemberForm.js | jrnail23/sitterswap-js | import React from 'react'
import Input from '../common/textInput'
import {Link} from 'react-router'
export default class extends React.Component {
static propTypes = {
member: React.PropTypes.shape({
firstName: React.PropTypes.string.isRequired,
lastName: React.PropTypes.string.isRequired,
emai... |
src/components/Footer/Footer.js | cheshire137/steam-palettes | import React, { Component } from 'react';
import s from './Footer.scss';
import withStyles from '../../decorators/withStyles';
@withStyles(s)
class Footer extends Component {
render() {
return (
<footer className={s.footer}>
<div className={s.innerContainer}>
© 2016 Sarah Vessels
... |
views/invocation.js | Serg09/black-screen | import React from 'react';
import Prompt from './prompt';
export default React.createClass({
componentWillMount() {
this.props.invocation
.on('data', _ => this.setState({canBeDecorated: this.props.invocation.canBeDecorated()}))
.on('status', status => this.setState({status: status})... |
fields/types/cloudinaryimage/CloudinaryImageColumn.js | trentmillar/keystone | import React from 'react';
import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var CloudinaryImageColumn = React.createClass({
displayName: 'CloudinaryImageCo... |
hello-world/src/App.js | lite-apps/apps | 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>
... |
lib/Row.js | eddyson-de/react-grid | import React from 'react';
import PropTypes from 'prop-types';
class Row extends React.Component {
constructor(props){
super(props);
}
componentWillMount(){
this.context.registerRow(this.props.component);
}
render(){
return <noscript>{this.props.children}</noscript... |
client/src/head/meta.js | pahosler/freecodecamp | import React from 'react';
const meta = [
<meta charSet='utf-8' />,
<meta content='IE=edge' httpEquiv='X-UA-Compatible' />,
<meta content='width=device-width, initial-scale=1.0' name='viewport' />,
<meta content='summary_large_image' name='twitter:card' />,
<meta
content='https://s3.amazonaws.com/freecod... |
lib/components/alert.js | pramjeet/react-caps | import React from 'react';
import PropTypes from 'prop-types';
const Alert = props => (
<div className="react-caps__alert">
<p className="react-caps__alert__text">{props.text}</p>
<button className="react-caps__alert__ok" onClick={e => props.onOkClick(e)}>
Ok
</button>
<style jsx>
{`
... |
src/components/Form/Inputs/InputView.js | Kalcode/Gatsby-Boilerplate | import React from 'react'
import PropTypes from 'prop-types'
import styles from './styles.module.scss'
export default function InputView({ children, error, inputProps, width }) {
return (
<div className={styles.wrapper} style={{ width }}>
<div className={styles.container}>
<label htmlFor={inputProp... |
src/issue/screens/edit-issue-comment.screen.js | gitpoint/git-point | // @flow
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import {
ScrollView,
StyleSheet,
TextInput,
View,
Dimensions,
} from 'react-native';
import { ListItem } from 'react-native-elements';
import { ViewContainer, SectionList, Loa... |
src/components/add-contact/add-contact.js | HendrikThePendric/webpack-demo | import React, { Component } from 'react';
import { connect } from 'react-redux';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import ContentAdd from 'material-ui/svg-icons/content/add';
import NavigationExpandLess from 'material-ui/svg-icons/navigation/expand-less';
import AddContactForm from '.... |
src/svg-icons/action/announcement.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAnnouncement = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"/>
</SvgIcon>
);
ActionAnnouncement = pu... |
node_modules/react-router/es6/IndexRedirect.js | Giuny/Giuny.github.io | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <IndexRedir... |
src/step_content.js | adamdawkins/react-mdl-stepper | import React from 'react';
import StepBorder from './step_border';
class StepContent extends React.Component {
getDimensions() {
const { container } = this.refs;
let width = 0;
let height = 0;
if (container) {
width = container.clientWidth;
height = container.clientHeight;
}
retu... |
app/javascript/mastodon/components/load_pending.js | sylph-sin-tyaku/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
export default class LoadPending extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func,
count: PropTypes.number,
}
render() {
const { count } = this.props;
return ... |
templates/rubix/rubix-bootstrap/src/NavDropdown.js | jeffthemaximum/jeffline | import React from 'react';
import ReactDOM from 'react-dom';
import BNavDropdown from './BNavDropdown';
import isBrowser from './isBrowser';
import isTouchDevice from './isTouchDevice';
var requestFrame = null, rAF = () => {}, cAF = () => {};
if (isBrowser()) {
requestFrame = require('request-frame');
rAF = requ... |
src/svg-icons/action/bookmark-border.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBookmarkBorder = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"/>
</SvgIcon>
);
ActionBookmarkBorder = pure(ActionBook... |
renderer/index.js | mjswensen/themer-gui | import React from 'react';
import ReactDom from 'react-dom';
import { Provider } from 'react-redux';
import application from './reducers/reducers';
import { createStore } from 'redux';
import App from './components/App';
import {
EXPORT_PROGRESS,
EXPORT_CANCEL,
EXPORT_ERROR,
EXPORT_COMPLETE,
SAVE_COMPLETE,
... |
client/components/Markdown/elements/_a.js | LetAmericaVote/strikeout | import React from 'react';
import { HighlightedLink } from '../../Routing';
const a = (props) => {
const { href, title, target, children } = props;
return (
<HighlightedLink label={children} link={href} alwaysHighlighted />
);
};
export default a;
|
src/svg-icons/editor/insert-comment.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertComment = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
</SvgIcon>
);
EditorInsertCom... |
src/svg-icons/action/thumb-up.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionThumbUp = (props) => (
<SvgIcon {...props}>
<path d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-... |
web/src/components/portableText.js | ajmalafif/ajmalafif.com | import React from 'react'
import clientConfig from '../../client-config'
import BasePortableText from '@sanity/block-content-to-react'
import serializers from './serializers'
import tw from 'twin.macro'
const PortableText = ({ blocks }) => (
<BasePortableText
className="notes"
css={{
display: 'grid',
... |
javascript/ShareAdmin/GuestRow.js | AppStateESS/stories | 'use strict'
import React from 'react'
import moment from 'moment'
import PropTypes from 'prop-types'
const GuestRow = ({
accept,
deny,
email,
siteName,
submitDate,
url
}) => {
const submitFormatted = moment.unix(submitDate).format("MMM D YYYY, h:mm a")
return (
<tr>
<td>
<button clas... |
webApp/web_client/components/BroadcastSetupView.js | deliquescentlicorice/silent-disco | import React from 'react';
// MATERIAL DESIGN
import Card from '../../node_modules/material-ui/lib/card/card';
import CardText from '../../node_modules/material-ui/lib/card/card-text';
import CardTitle from '../../node_modules/material-ui/lib/card/card-title';
import TextField from '../../node_modules/material-ui/lib/... |
app/javascript/flavours/glitch/features/compose/components/search_results.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
import AccountContainer from 'flavours/glitch/containers/account_container';
import StatusContainer from 'flavours/glitch/... |
react_sources/components/FollowButton.js | nahcnuj/twitter-friends-manager | import ReactDOM from 'react-dom';
import React from 'react';
import Request from 'superagent';
export default class FollowButton extends React.Component {
constructor(props) {
super(props);
this.unfollow = this.unfollow.bind(this);
}
render() {
return (
<button
onClick={this.unfollow}... |
src/shared/components/HomePage.js | Grace951/grace951.github.io | import './home.sass';
import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { getDevice } from '../actions/deviceAction';
import { loadRecentsWorks } from '../actions/portfolioActions';
import {PinterestGrid} from './PinterestGrid/PinterestGrid';
let Loa... |
docs/src/pages/index.js | adrianleb/nuclear-js | import React from 'react'
import Wrapper from '../layouts/wrapper'
import ItemFilterExample from '../components/item-filter-example'
import UsageExample from '../components/usage-example'
import Nav from '../components/nav'
export default React.createClass({
render() {
return <Wrapper>
<Nav />
<div c... |
app/javascript/mastodon/features/ui/components/media_modal.js | vahnj/mastodon | import React from 'react';
import ReactSwipeableViews from 'react-swipeable-views';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ExtendedVideoPlayer from '../../../components/extended_video_player';
import classNames from 'classnames';
import { defineMessages, i... |
src/SplicerList.js | chenzihui/react-splicer | 'use strict';
import React from 'react';
import SplicerListItem from './SplicerListItem';
class SplicerList extends React.Component {
constructor(props) {
super(props);
}
render() {
let classes = this.props.data.length === 0
? 'splicer__list hidden'
: 'splicer__list'... |
app/scripts/main.dev.js | hustbill/autorender-js | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import Immutable from 'immutable';
import installDevTools from 'immutable-devtools';
import '../styles/main.scss';
import '../images/favicon.ico';
import configureStore from './stores/configure... |
server/soman/frontend/app/components/Footer.js | bilgorajskim/soman | import React from 'react'
export default () => <div className="footer">
<div className="footer__item">
<img src={require('./../../img/feats/one.png')} alt="" />
</div>
<div className="footer__item">
<img src={require('./../../img/feats/two.png')} alt="" />
</div>
<div className="footer__item">
<i... |
modules/PropTypes.js | jepezi/react-router | import React from 'react';
import Location from './Location';
import History from './History';
var { func, object, arrayOf, instanceOf, oneOfType, element } = React.PropTypes;
function falsy(props, propName, componentName) {
if (props[propName])
return new Error(`<${componentName}> should not have a "${propName... |
app/react-icons/fa/envelope.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaEnvelope extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m40 15.8v17.8q0 1.4-1 2.5t-2.6 1h-32.8q-1.5 0-2.6-1t-1-2.5v-17.8q1 1.1 2.3 ... |
stories/cape-york-2015/index.js | cobbweb/golittle.red | import React from 'react';
/* Story Component */
import Story from '../../components/Story/Story';
import BackgroundImage from '../../components/Story/BackgroundImage';
import StoryBody from '../../components/StoryBody';
import TextSection from '../../components/TextSection';
import TitleSection, {
TitleText,
Tit... |
client/src/index.js | wolnewitz/raptor-ads | import React from 'react';
import { render } from 'react-dom';
import Root from './components/Root';
const appElement = document.getElementById('app');
render(
<Root />
, appElement,
);
|
src/demo/App.js | adamwade2384/react-parallax-mousemove | import React from 'react';
import ParallaxMousemove from '../lib';
class App extends React.Component {
render() {
const style = {
outter: {
background: 'radial-gradient(50% 150%, #6CD7E8 50%, #59C2D3 100%)',
backgroundPosition: 'center',
backgroundSize: 'cover',
width:'100%... |
app/components/List/index.js | gtct/wallet.eine.com | import React from 'react';
import Ul from './Ul';
import Wrapper from './Wrapper';
function List(props) {
const ComponentToRender = props.component;
let content = (<div></div>);
// If we have items, render them
if (props.items) {
content = props.items.map((item, index) => (
<ComponentToRender key={... |
blueprints/view/files/__root__/views/__name__View/__name__View.js | joyvuu-dave/comeals-ui-react | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
src/AppBar/AppBar.js | skarnecki/material-ui | import React from 'react';
import IconButton from '../IconButton';
import NavigationMenu from '../svg-icons/navigation/menu';
import Paper from '../Paper';
import propTypes from '../utils/propTypes';
import warning from 'warning';
function getStyles(props, context) {
const {
appBar,
button: {
iconButto... |
src/ButtonToolbar.js | blue68/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();
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.