path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/containers/Chat/message-box.js | VonIobro/ab-web | import React from 'react';
import PropTypes from 'prop-types';
class MessageBox extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
constructor(props) {
super(props);
this.handleSend = this.handleSend.bind(this);
}
handleSend(event) {
if (event.which === 13) {
... |
app/containers/NotFoundPage/index.js | nathanhood/mmdb | import React from 'react';
import Helmet from 'react-helmet';
export default class NotFound extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<div>
<Helmet>
<title>Page Not Found | MMDb</title>
... |
src/containers/challenges/Browse/BrowseView.js | OlivierVillequey/hackathon | /**
* Challenge Tabs Screen
* - Shows tabs, which contain challenge listings
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
View,
StyleSheet,
InteractionManager,
} from 'react-nativ... |
src/js/pages/App.js | ilken/LinkinParkRadio | import React from 'react';
import Radio from '../components/Radio';
export default class App extends React.Component {
render () {
return (<Radio/>);
}
}
|
src/common/components/vanilla-modules/breadcrumbs/index.js | canonical-websites/build.snapcraft.io | import PropTypes from 'prop-types';
import React from 'react';
import { Link } from 'react-router';
import style from '../../../style/vanilla/css/breadcrumbs.css';
const breadcrumbsStyle = (element = '', modifier = '') => {
element = element ? '__' + element : '';
modifier = modifier ? '--' + modifier : '';
co... |
src/components/NotFound.js | bjacobel/rak | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { notFound } from '../stylesheets/notFound.css';
import { link } from '../stylesheets/link.css';
export default class NotFound extends Component {
render() {
return (
<div>
<h1 className={notFound}>404: page ... |
node_modules/react-select/src/utils/defaultArrowRenderer.js | darklilium/Factigis_2 | import React from 'react';
export default function arrowRenderer ({ onMouseDown }) {
return (
<span
className="Select-arrow"
onMouseDown={onMouseDown}
/>
);
};
|
node_modules/react-router/es6/RouterContext.js | silky098/Youtube-React-Search | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _extends = Object.assign || function (target) { for (var i = 1; i < argum... |
docs/src/app/components/pages/components/Dialog/ExampleAlert.js | tan-jerene/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
/**
* Alerts are urgent interruptions, requiring acknowledgement, that inform the user about a situation.
*/
export default class DialogExampleAler... |
src/screens/main/SearchModal/SearchHeader/SearchHeader.js | Barylskyigb/simple-debts-react-native | import React from 'react';
import { View } from 'react-native';
import { MKTextField } from 'react-native-material-kit';
import PropTypes from 'prop-types';
import Icon from 'react-native-vector-icons/Ionicons';
import TouchableArea from '../../../../components/TouchableArea/TouchableArea';
import styles from './Search... |
client/modules/App/components/Header/Header.js | tranphong001/BIGVN | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Navbar, Nav, NavItem, MenuItem, Glyphicon, Image, Form, FormGroup, InputGroup, FormControl, Button, NavDropdown, DropdownButton } from 'react-bootstrap';
import styles from './Header.css';
impor... |
web/src/index.js | cardigann/cardigann | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import 'bootswatch/flatly/bootstrap.min.css';
import 'react-select/dist/react-select.min.css';
ReactDOM.render(<App />, document.getElementById('root')); |
src/svg-icons/places/free-breakfast.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesFreeBreakfast = (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-.9 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM4 19h16v2H4z"/>
</SvgIcon>
);
PlacesFre... |
client/src/header/LogoutButton.js | ziel5122/autograde | import React from 'react';
import { connect } from 'react-redux';
const style = {
fontSize: '16px',
lineHeight: '16px',
padding: '12px',
};
const LogoutButton = ({ logout }) => (
<div
className="logout"
onClick={logout}
role="button"
style={style}
tabIndex={0}
>
logout
<style jsx... |
react_this/setup.js | devSC/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
//this 指向
//1.如果一个函数中有this,但是它没有以对象方法的形式调用,而是以函数名的形式执行,那么this指向的就是全局对象。
/*
test() {
console.log(this)
}
* */
//2.如果... |
frontend/src/components/dialog/org-delete-member-dialog.js | miurahr/seahub | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { gettext, orgID } from '../../utils/constants';
import { seafileAPI } from '../../utils/seafile-api';
import { Utils } from '../../utils/utils';
import toaster from '..... |
src/components/HomePage/HomePage.js | alexbonine/react-starter-kit | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
'use strict';
import React from 'react';
export default React.createClass({
propType... |
src/parser/shared/modules/others/DistanceMoved.js | fyruna/WoWAnalyzer | import React from 'react';
import { XYPlot, AreaSeries } from 'react-vis';
import { AutoSizer } from 'react-virtualized';
import 'react-vis/dist/style.css';
import { formatPercentage, formatThousands } from 'common/format';
import groupDataForChart from 'common/groupDataForChart';
import Statistic from 'interface/stat... |
src/containers/universe.js | anshudutta/React-Conway | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Unit from '../components/unit'
import {Cell} from '../middleware/cell'
class Universe extends Component {
constructor(props){
super(props);
this.state = {};
}
renderUniverse(){
const numOfRows = this.props.popula... |
blueocean-material-icons/src/js/components/svg-icons/action/pets.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionPets = (props) => (
<SvgIcon {...props}>
<circle cx="4.5" cy="9.5" r="2.5"/><circle cx="9" cy="5.5" r="2.5"/><circle cx="15" cy="5.5" r="2.5"/><circle cx="19.5" cy="9.5" r="2.5"/><path d="M17.34 14.86c-.87-1.02-1.6-1.89-2.48-2.91-.46-.54... |
src/components/icons/PlusIcon.js | austinknight/ui-components | import React from 'react';
const PlusIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 100 100">
{props.title && <title>{props.title}</title>}
<polygon points="55 25 45 25 45 45 25 45 25 55 45 55 45 75 55 75 55 55 75 55 75 45 55 45 55 25" />
</svg>
);
expo... |
packages/arwes/src/Button/Button.js | romelperez/ui | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import AnimationComponent from '../Animation';
import HighlightComponent from '../Highlight';
import FrameComponent from '../Frame';
export default class Button extends Component {
static propTypes = {
Ani... |
src/index.js | RobGThai/ReduxTutorial | import _ from 'lodash';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import YTSearch from 'youtube-api-search';
import SearchBar from './components/search_bar';
import VideoList from './components/video_list';
import VideoDetail from './components/video_detail';
import secret from './_... |
client/index.js | johngodley/search-regex | /* global document, SearchRegexi10n */
import 'wp-plugin-lib/polyfill';
/**
* External dependencies
*/
import React from 'react';
import ReactDOM from 'react-dom';
import i18n from 'i18n-calypso';
import { registerLocale, setDefaultLocale } from 'react-datepicker';
/**
* Internal dependencies
*/
import App from... |
src/index.js | yeying0827/gallery-by-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
src/svg-icons/av/video-call.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVideoCall = (props) => (
<SvgIcon {...props}>
<path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4zM14 13h-3v3H9v-3H6v-2h3V8h2v3h3v2z"/>
</SvgIcon>
)... |
lib/ui/src/components/notifications/item.stories.js | storybooks/react-storybook | import React from 'react';
import NotificationItem from './item';
export default {
component: NotificationItem,
title: 'UI/Notifications/Item',
decorators: [storyFn => <div style={{ width: '240px', margin: '1rem' }}>{storyFn()}</div>],
excludeStories: /.*Data$/,
};
export const simpleData = {
id: '1',
co... |
packages/xo-web/src/common/link.js | vatesfr/xo-web | import Link from 'react-router/lib/Link'
import PropTypes from 'prop-types'
import React from 'react'
import { routerShape } from 'react-router/lib/PropTypes'
import Component from './base-component'
// ===================================================================
export { Link as default }
// ---------------... |
client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/index.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { localize, numberFormat } from 'i18n-calypso';
import { find, isEmpty } from 'lodash';
/**
* Internal dependencies
... |
src/decorators/withViewport.js | carlosCeron/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
src/client/main.js | AlesJiranek/este | import React from 'react';
import ReactDOM from 'react-dom';
import Router from 'react-router';
import configureStore from '../common/configureStore';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import createEngine from 'redux-storage/engines/localStorage';
import createRoutes from './createRou... |
frame-react/src/component/repos.js | shenqingling/myTemplates | import React, { Component } from 'react';
export default class Repos extends Component {
render() {
return <div>
ReposPage
</div>
}
} |
src/modules/ImagePreview/component.js | svmn/ace-fnd | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Paper from 'material-ui/Paper';
import RefreshIndicator from 'material-ui/RefreshIndicator';
import IconButton from 'material-ui/IconButton';
import { fullWhite, lightBlack } from 'material-ui/styles/colors';
export def... |
src/client/routes.js | AlexanderKapelyukhovskiy/rcn.io | import React from 'react'
import { Route, IndexRoute, Redirect } from 'react-router'
import App from 'App'
import Home from 'Home'
import Dev from 'Dev'
import MtbCalendar from 'calendar/MtbCalendar'
import NcncaCalendar from 'calendar/NcncaCalendar'
import NcncaDraftCalendar from 'calendar/NcncaDraftCalendar'
import E... |
admin/src/components/PopoutListItem.js | woody0907/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
var PopoutListItem = React.createClass({
displayName: 'PopoutListItem',
propTypes: {
icon: React.PropTypes.string,
iconHover: React.PropTypes.string,
iconHoverAlt: React.PropTypes.string,
isSelected: React.Prop... |
frontend/node_modules/react-scripts/template/src/index.js | andres81/auth-service | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/app/components/CardExampleWithAvatar.js | leoliew/react-webpack-example | /**
* Created by leoliew on 2016/11/28.
*/
import React from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
import ShowCaseCard from './ShowCaseCard';
const styles = {
card: {
margin: '2%'
}
};
class F... |
actor-apps/app-web/src/app/components/common/Stateful.react.js | liruqi/actor-platform-v0.9 | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import _ from 'lodash';
import React from 'react';
import { AsyncActionStates } from 'constants/ActorAppConstants';
export class Root extends React.Component {
static propTypes = {
className: React.PropTypes.string,
currentState: React.PropTypes.num... |
frontend/src/components/siteComponents/NewCollection/index.js | webrecorder/webrecorder | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Toggle from 'react-toggle';
import { Alert, Button, Form } from 'react-bootstrap';
import { defaultCollectionTitle } from 'config';
import { collection } from 'helpers/userMessaging';
import { GlobeIcon } from 'components/icons';
im... |
app/javascript/src/components/rtc.js | michelson/chaskiq | import React from 'react'
import Button from './Button'
import { connect } from 'react-redux'
import Peer from 'simple-peer'
import { createPortal } from 'react-dom'
import usePortal from './hooks/usePortal'
import styled from '@emotion/styled'
// Broadcast Types
const JOIN_ROOM = 'JOIN_ROOM'
//const EXCHANGE = 'EX... |
src/DepartmentContainer.js | Andrew-He/moka | import React, { Component } from 'react';
import PositionListing from './PositionListing.js';
import CountBubble from './CountBubble.js';
import uuidV4 from 'uuid/v4';
class DepartmentContainer extends Component {
constructor(props){
super(props);
this.state = { checked: false }; ... |
client/scripts/components/toggle-switch/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
modules/TransitionHook.js | wmyers/react-router | import React from 'react';
import warning from 'warning';
var { object } = React.PropTypes;
var TransitionHook = {
contextTypes: {
router: object.isRequired
},
componentDidMount() {
warning(
typeof this.routerWillLeave === 'function',
'Components that mixin TransitionHook should have a rou... |
actor-apps/app-web/src/app/components/dialog/messages/Document.react.js | yangchaogit/actor-platform | import React from 'react';
import classnames from 'classnames';
class Document extends React.Component {
static propTypes = {
content: React.PropTypes.object.isRequired,
className: React.PropTypes.string
};
constructor(props) {
super(props);
}
render() {
const { content, className } = this.... |
src/index.js | emilpalsson/react-metro | // REACT METRO - Nicolas Delfino
// www.github.com/nicolasdelfino
import React from 'react'
import MetroHoc from './MetroHoc'
import MetroAnimations from './MetroAnimations'
const defaultAnimation = {
animation: {
out: {
time: 0.4,
delay: 0
},
in: {
time: 0.4,
delay: 0
},
... |
assets/components/Calendar/GoogleCalendar.js | hemstreet/MagicMirror | import config from '../../../config/config'
import React from 'react';
var gcal = require('google-calendar');
export default React.createClass({
componentWillMount() {
this.google_calendar = new gcal.GoogleCalendar(config.calendar.google);
},
componentDidMount() {
window.setInterval(() => ... |
src/src/routes/Deals/routes/View/containers/DealContainer.js | alexberriman/local-deals | import React from 'react'
import { connect } from 'react-redux'
import Deal from '../components/Deal'
import { fetchDeal } from '../modules/actions'
import strings from './DealContainer.strings.js'
class DealContainer extends React.Component {
/**
* Fetches the user's profile.
*/
componentDidMount() {
... |
src/GameCard.js | leemeli/game | import React from 'react';
import firebase from 'firebase';
String.prototype.replaceAll = function(search, replace) {
if (replace === undefined) {
return this.toString();
}
return this.split(search).join(replace);
}
// Individual Card Component
export default class GameCard extends React.Component... |
examples/src/app.js | naturalatlas/react-select | /* eslint react/prop-types: 0 */
import React from 'react';
import Select from 'react-select';
import CustomRenderField from './components/CustomRenderField';
import MultiSelectField from './components/MultiSelectField';
import RemoteSelectField from './components/RemoteSelectField';
import SelectedValuesField from '... |
admin/client/components/PopoutListHeading.js | mikaoelitiana/keystone | import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutListHeading = React.createClass({
displayName: 'PopoutListHeading',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
},
render () {
let className = classnames... |
src/pages/base/settings.js | voidxnull/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2015 Loki Education (Social Enterprise)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, o... |
src/js/components/DataChart/stories/Axis.js | grommet/grommet | import React from 'react';
import { Box, DataChart } from 'grommet';
const data = [];
for (let i = 1; i <= 7; i += 1) {
const v = Math.sin(i / 2.0);
const digits = ((i % 12) + 1).toString().padStart(2, 0);
data.push({
// explore variations in date format by changing the xAxis key to
// the time period y... |
docs/snippets/plugin-default-config.js | zapier/formatic | //CUT
import React from 'react';
import Formatic from 'formatic';
const fields = [];
//CUT
const config = Formatic.createConfig();
React.render(<Formatic config={config} fields={fields} />, document.body);
|
src/client/components/WidgetContainer/WidgetContainer.js | jaimerosales/visual-reports-bim360dc | import PropTypes from 'prop-types'
import ReactDOM from 'react-dom'
import './WidgetContainer.scss'
import React from 'react'
class WidgetContainer extends React.Component {
/////////////////////////////////////////////////////////
//
//
/////////////////////////////////////////////////////////
static propT... |
docs/app/Examples/elements/Reveal/Content/index.js | ben174/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const RevealContentExamples = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Visible Content'
des... |
newclient/scripts/components/dynamic-icons/checkmark-icon/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
src/components/EventList/EventList.js | jhabdas/lumpenradio-com | import React from 'react';
import styles from './EventList.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import EventItem from '../EventItem';
@withStyles(styles)
class EventList extends React.Component {
render() {
let eventItems = this.props.data.map((eventItems, i) =... |
src/components/common/Pagination.js | kmcarter/karaoke-song-lister | import React from 'react';
import PropTypes from 'prop-types';
import Icon from './Icon';
import PerPageSelector from './PerPageSelector';
import PaginationLink from './PaginationLink';
const Pagination = props => {
const totalNumPages = Math.floor( props.count / props.perPage );
const onNextClick = e => {
... |
frontend/app/components/Alphabet/AlphabetContainer.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
import AlphabetPresentation from 'components/Alphabet/AlphabetPresentation'
import AlphabetPrintPresentation from 'components/Alphabet/AlphabetPrintPresentation'
import AlphabetData from 'components/Alphabet/AlphabetData'
/**
* @summary AlphabetContainer
*... |
techCurriculum/ui/solutions/4.4/src/components/Message.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
src/svg-icons/maps/terrain.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTerrain = (props) => (
<SvgIcon {...props}>
<path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/>
</SvgIcon>
);
MapsTerrain = pure(MapsTerrain);
MapsTerrain.displayName = 'MapsTerr... |
src/components/Conversation.js | stefan-moraru/please | import React, { Component } from 'react';
import RenderWithTimeout from './RenderWithTimeout';
import request from 'superagent';
import _get from 'lodash.get';
import ReactTooltip from 'react-tooltip';
import ReactMarkdown from 'react-markdown';
import _ from '../services/_';
import { OptionButton, OptionIcon, OptionIn... |
src/svg-icons/device/signal-wifi-4-bar.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi4Bar = (props) => (
<SvgIcon {...props}>
<path d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/>
</SvgIcon>
);
DeviceSignalWifi4Bar = pure(Devic... |
docs/src/components/Breakpoint.js | storybooks/react-storybook | import React from 'react';
import PropTypes from 'prop-types';
import './breakpoints.css';
const Breakpoint = ({ mobile, children }) => {
const className = mobile ? 'breakpoint-min-width-700' : 'breakpoint-max-width-700';
return <div className={className}>{children}</div>;
};
Breakpoint.propTypes = {
children:... |
examples/group/App.js | sskyy/redux-task | 'use strict'
import React from 'react'
import {Message,Input, Indicator} from './components'
const App = React.createClass({
render(){
return <div>
<Input />
<Message />
<Indicator />
</div>
}
})
export default App
|
app/javascript/mastodon/features/favourited_statuses/index.js | koba-lab/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites';
import Column from '../ui/components/column';
import ColumnHeade... |
docs/app/Examples/elements/Image/Variations/ImageExampleVerticallyAligned.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Divider, Image } from 'semantic-ui-react'
const src = '/assets/images/wireframe/image.png'
const ImageExampleVerticallyAligned = () => (
<div>
<Image src={src} size='tiny' verticalAlign='top' /> <span>Top Aligned</span>
<Divider />
<Image src={src} size='tiny' vertic... |
src/components/common/Login.js | projecter-org/projecter | import React from 'react'
import FlatButton from 'material-ui/FlatButton'
class Login extends React.Component {
static muiName = 'FlatButton'
render () {
return (
<FlatButton {...this.props} label='Login' />
)
}
}
export default Login
|
app/blocks/header/index.js | lamo2k123/demo.bestplace.pro | // @flow
import React from 'react'
import { Link } from 'react-router-async'
import SignButton from 'block/sign/button'
import AuthProfile from 'block/auth/profile'
import style from './style'
const Header = () => (
<header className={style['header']}>
<Link to="/" className={style['header__logo']}>Best ... |
ui/src/main/js/components/Tabs.js | rdelval/aurora | import React from 'react';
import Icon from 'components/Icon';
import { addClass } from 'utils/Common';
// Wrapping tabs in his component helps simplify testing of Tabs with enzyme's shallow renderer.
export function Tab({ children, icon, id, name }) {
return <div>{children}</div>;
}
export default class Tabs ext... |
docs/src/PageFooter.js | collinwu/react-bootstrap | import React from 'react';
import packageJSON from '../../package.json';
let version = packageJSON.version;
if (/docs/.test(version)) {
version = version.split('-')[0];
}
const PageHeader = React.createClass({
render() {
return (
<footer className='bs-docs-footer' role='contentinfo'>
<div c... |
assets/jqwidgets/demos/react/app/grid/groupingwithpager/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
import JqxInput from '../../../jqwidgets-react/react_jqxinput.js';
class App extends React.Component {
componentDidMou... |
src/app/components/search/SearchResultsTable/CommentCountCell.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import NumberCell from './NumberCell';
export default function CommentCountCell({ projectMedia }) {
const commentCount = projectMedia.list_columns_values.comment_count;
return <NumberCell value={commentCount} />;
}
CommentCountCell.propTypes = {
proj... |
src/index.js | YMFL/reactNews | import React from 'react';
import ReactDOM from 'react-dom';
import 'core-js/fn/object/assign';
import { Router,Route,hashHistory } from 'react-router';
import MediaQuery from 'react-responsive';
//pc
import PCIndex from './components/pc_index';
import PCNewsDetails from './components/pc_news_details';
import PCUserCen... |
src/routes/chart/Container.js | ykx456654/hr_admin | import React from 'react'
import PropTypes from 'prop-types'
import styles from './Container.less'
import { ResponsiveContainer } from 'recharts'
const Container = ({ children, ratio = 5 / 2, minHeight = 250, maxHeight = 350 }) => <div className={styles.container} style={{ minHeight, maxHeight }}>
<div style={{ marg... |
src/components/App.js | budiantotan/book-store | import React from 'react';
import { Link } from 'react-router';
const App = (props) => {
return (
<div className="container">
<nav className="navbar navbar-default">
<div className="container-fluid">
<div className="navbar-header">
<a ... |
vgdb-frontend/src/components/Title.js | mattruston/idb | import React, { Component } from 'react';
import './Title.css';
class Title extends Component {
render() {
return (
<div className="title">{ this.props.title }</div>
);
}
}
export default Title; |
src/components/loading-animation/LoadingAnimation.js | ipfs/webui | import React from 'react'
import { withTranslation } from 'react-i18next'
// Components
import GlyphDots from '../../icons/GlyphDots'
import Checkbox from '../../components/checkbox/Checkbox'
import FileIcon from '../../files/file-icon/FileIcon'
// Styles
import './LoadingAnimation.css'
const FakeHeader = ({ t }) => (... |
src/data-store/index.js | ForbesLindesay/react-data-fetching-demo | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app';
ReactDOM.render(
<App/>,
document.getElementById('container'),
);
|
src/svg-icons/image/exposure-plus-2.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposurePlus2 = (props) => (
<SvgIcon {...props}>
<path d="M16.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17.23-.39.41-.78.54-1.17.13-.39.19-.79.19-1.18 0-.53-.09-1.02-.27-1.46-.18-.44-... |
common/components/scrollable/VerticalScrollbar.js | ebertmi/webbox | /*The MIT License (MIT)
Copyright (c) 2016 Naufal Rabbani
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, merge,... |
client/my-sites/upgrades/domain-management/transfer/shared.js | allendav/wp-calypso | /**
* External dependencies
*/
import React from 'react';
/**
* Internal dependencies
*/
import notices from 'notices';
import { translate } from 'lib/mixins/i18n';
import support from 'lib/url/support';
export const displayResponseError = ( responseError ) => {
const errorMessages = {
unlock_domain_and_disabl... |
ui/js/pages/file/FilesSectionEdit.js | ericsoderberg/pbc-web |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import FormState from '../../utils/FormState';
import SectionMultiEdit from '../../components/SectionMultiEdit';
import FilesItemEdit from './FilesItemEdit';
export default class FilesSectionEdit extends Component {
constructor(props) {
... |
App/Services/ExamplesRegistry.js | tetriseffect/activate | import React from 'react'
import {Text, View} from 'react-native'
import R from 'ramda'
import { ApplicationStyles } from '../Themes'
import DebugSettings from '../Config/DebugSettings'
let globalExamplesRegistry = []
export const addExample = (title, usage) => { if (DebugSettings.includeExamples) globalExamplesRegist... |
private/Components/ViewFavorites.js | Bartoshko/occasion-jitsu | import React from 'react'
import {Link} from 'react-router-dom'
import {ToggleFavorite} from './Components.js'
// ViewFavorites component renders favorites stores
const SearchFavorites = props => (
<div>
<form className='row underline'>
<div className='row'>
<div className='four columns'>
... |
client/components/FileUpload.js | phoenixmusical/membres | import React from 'react';
import s3upload from 'utils/s3upload';
import ProgressBar from './ProgressBar';
export default class FileUpload extends React.Component {
constructor (props) {
super(props);
this.state = {
status: 'init',
error: null,
progress: 0,
... |
react/BuildingIcon/BuildingIcon.sketch.js | seek-oss/seek-style-guide | import React from 'react';
import BuildingIcon from './BuildingIcon';
import generateSketchIconSizes from '../private/generateSketchIconSizes';
export const symbols = {
...generateSketchIconSizes('Building', <BuildingIcon />)
};
|
src/error/index.js | kyoyadmoon/fuzzy-hw1 | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
... |
examples/transitions/app.js | whouses/react-router | import React from 'react';
import { Router, Route, Link, History, Lifecycle } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<ul>
<li><Link to="/dashboard">Dashboard</Link></li>
<li><Link to="/form">Form</Link></li>
</ul>
{this.props... |
app/javascript/mastodon/features/ui/components/column_subheading.js | yi0713/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const ColumnSubheading = ({ text }) => {
return (
<div className='column-subheading'>
{text}
</div>
);
};
ColumnSubheading.propTypes = {
text: PropTypes.string.isRequired,
};
export default ColumnSubheading;
|
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js | JeeLiu/actor-platform | import _ from 'lodash';
import React from 'react';
import { Styles, RaisedButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import ContactStore from 'stores/ContactStore';
import ContactActionCreators from 'actions/ContactActionCreators';
import AddContactStore from 'stores/AddContactStore'... |
packages/ringcentral-widgets-docs/src/app/pages/Components/Panel/Demo.js | ringcentral/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import Panel from 'ringcentral-widgets/components/Panel';
const props = {};
/**
* A example of `Panel`
*/
const PanelDemo = () => <Panel {...props} />;
export default PanelDemo;
|
webpack/JobWizard/steps/AdvancedFields/Fields.js | theforeman/foreman_remote_execution | import React from 'react';
import PropTypes from 'prop-types';
import { FormGroup, TextInput, Radio } from '@patternfly/react-core';
import { translate as __ } from 'foremanReact/common/I18n';
import { helpLabel } from '../form/FormHelpers';
import { formatter } from '../form/Formatter';
import { NumberInput } from '..... |
node_modules/react-bootstrap/es/NavbarHeader.js | xuan6/admin_dashboard_local_dev | 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 ... |
src/svg-icons/action/query-builder.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionQueryBuilder = (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 8zm.5... |
es/components/style/form-number-input.js | vovance/3d-demo | 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 = {... |
examples/counter/index.js | mrblueblue/redux | import React from 'react';
import App from './containers/App';
React.render(
<App />,
document.getElementById('root')
);
|
src/client/components/Home/Landing/BannerHeader.js | kowhai-2016/flatme | import React from 'react'
const BannerHeader = () => {
return (
<div className='header'>
<div className='description1'>
<h1 id='mainTitle'>goFlat</h1>
<h3 id='subtitle'>resolves all your flatting issues</h3>
</div>
<br />
<br />
<div className='row description2'>
... |
src/fullConditional.js | clearbridgesoft/form-builder | import React from 'react';
import ObjectField from 'react-jsonschema-form/lib/components/fields/ObjectField';
import deepcopy from 'deepcopy';
function eval_fun(str_fun){
if(str_fun){
return new Function('args','return ('+str_fun+')(args);');
}
return function(a){return a;};
}
class FullControlConditional e... |
packages/react-error-overlay/src/components/CloseButton.js | gutenye/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.
*/
/* @flow */
import React from 'react';
import { black } from '../styles';
const closeButtonStyle = {
color: black,
lineHeight: '1re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.