path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
dist/lib/carbon-fields/assets/js/containers/components/container/tabbed.js | ArtFever911/statrer-kit | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { compose, withProps, withHandlers, lifecycle } from 'recompose';
import { get, map, find, filter, includes, kebabCase } from 'lodash';
/**
* The internal dependencies.
*/
import ContainerTabsNav from 'contain... |
src/App/Body/Display/Modules/ModulesHeader/index.js | ksmithbaylor/emc-license-summarizer | import React from 'react';
import colors from 'data/colors';
import TableHeader from 'material-ui/lib/table/table-header';
import TableRow from 'material-ui/lib/table/table-row';
import ModulesHeaderCell from './ModulesHeaderCell';
// For material-ui (expects a TableHeader inside Table)
ModulesHeader.displayName = 'Ta... |
docs/app/Examples/elements/List/Types/ListExampleOrderedValue.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { List } from 'semantic-ui-react'
const ListExampleOrderedValue = () => (
<List as='ol'>
<List.Item as='li' value='*'>Signing Up</List.Item>
<List.Item as='li' value='*'>User Benefits</List.Item>
<List.Item as='li' value='*'>
User Types
<List.Item as='ol'>
... |
src/components/video_detailes.js | ShirH/YouTube-Search-App | import React from 'react';
const videoDetails = ({video})=> {
if (!video) {
return (<div>loading...</div>);
}
const videoUrl = `https://www.youtube.com/embed/${video.id.videoId || 'videoseries?list='+video.id}`;
return (
<div className="video-detail col-md-8">
<div className... |
src/pages/Header.js | js22gz/myteiching | import React from 'react';
import { Link } from 'react-router';
import { LoginLink, LogoutLink, Authenticated, NotAuthenticated } from 'react-stormpath';
export default class Header extends React.Component {
render() {
return (
<nav className="navbar navbar-default navbar-static-top">
<div classNam... |
src/svg-icons/image/compare.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCompare = (props) => (
<SvgIcon {...props}>
<path d="M10 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v2h2V1h-2v2zm0 15H5l5-6v6zm9-15h-5v2h5v13l-5-6v9h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ImageCo... |
src/scenes/home/press/pressVideos/pressVideos.js | tskuse/operationcode_frontend | import React from 'react';
import styles from './pressVideos.css';
function PressVideos() {
return (
<div className={styles.videos}>
<iframe title="GitHub Universe: Operation Code" src="https://www.youtube.com/embed/xN7yMoe38xc" frameBorder="0" allowFullScreen width="755" height="425" />
<iframe titl... |
src/index.js | cloudmu/darksky | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
docs/app/Examples/elements/Label/Types/LabelExampleRibbon.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Grid, Image, Label, Segment } from 'semantic-ui-react'
const LabelExampleRibbon = () => (
<Grid columns={2}>
<Grid.Column>
<Segment raised>
<Label as='a' color='red' ribbon>Overview</Label>
<span>Account Details</span>
<Image src='http://semantic-... |
src/views/Items.js | alexras/narpassword | import React, { Component } from 'react';
import './Items.css';
import missiletank from './images/missile-tank.png';
import energytank from './images/energy-tank.png';
var areas = ['norfair', 'brinstar', 'ridley', 'kraid'];
class Item extends Component {
constructor(props) {
super(props);
this.handleClick ... |
frontend/src/index.js | thebillkidy/Brewr-Site | import React from 'react';
import ReactDOM from 'react-dom';
import routes from './routes';
// Install the routes
ReactDOM.render(routes, document.getElementById('root'));
|
src/components/PasswordInput/PasswordInput.js | tlraridon/ps-react-train-tlr | import React from 'react';
import PropTypes from 'prop-types';
import ProgressBar from '../ProgressBar';
import EyeIcon from '../EyeIcon';
import TextInput from '../TextInput';
/** Password input with integrated label, quality tips, and show password toggle. */
class PasswordInput extends React.Component {
construct... |
src/containers/Terms/Terms.js | Tarabyte/foodlr-web | import React from 'react'
import Helmet from 'react-helmet'
import { FormattedMessage, FormattedHTMLMessage, injectIntl, intlShape } from 'react-intl'
const Terms = props => {
const { intl: { formatMessage } } = props
const styles = require('./Terms.css') // eslint-disable-line global-require
const messages = re... |
mentry.js | change-soft8/cs-project-antd | import React from 'react'
import ReactDOM from "react-dom";
import { Router, Link, browserHistory, Route, IndexRoute } from 'react-router'
import App from './msrc/router/App'
import About from './msrc/router/About'
import Home from './msrc/router/Home'
import Landing from './msrc/router/Landing'
import Logout from './m... |
docs/src/app/components/pages/components/TimePicker/ExampleComplex.js | verdan/material-ui | import React from 'react';
import TimePicker from 'material-ui/TimePicker';
export default class TimePickerExampleComplex extends React.Component {
constructor(props) {
super(props);
this.state = {value24: null, value12: null};
}
handleChangeTimePicker24 = (event, date) => {
this.setState({value24:... |
src/library/navigation/getModalRoutes.js | Digitova/reactova-framework | import React, { Component } from 'react';
import getRouteTemplate from './getRouteTemplate';
import StackHeader from '../../components/Navigation/StackHeader'
export default getModalRoutes = function(navigationSchema) {
let routes = navigationSchema.routes
const modalRouteList = []
const routeObjects = Object.ke... |
client/js/ClientApp.js | mysteryihs/guan_shu_v2 | import React from 'react'
import { Provider } from 'react-redux'
import { Router, browserHistory } from 'react-router'
import { routerMiddleware, syncHistoryWithStore } from 'react-router-redux'
import createStore from 'store'
import routes from 'routes'
import omit from 'object.omit'
export default (props) => {
con... |
src/routes/error/index.js | guokeke/myblog | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-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';
import ErrorPage from './Err... |
lib/DataManagerContainer.js | c58/marsdb-react | import React from 'react';
/**
* Component for rendering data container
*/
export default class DataManagerContainer extends React.Component {
static defaultProps = {
renderLoading: () => null,
};
constructor(props, context) {
super(props, context);
this.state = { result: {} };
this.query = p... |
tp-3/marisol/src/components/pages/alumnos/listado/AlumnoListado.js | jpgonzalezquinteros/sovos-reactivo-2017 |
import React from 'react';
import { NavLink } from 'react-router-dom';
import GralTable from '../../../gral-components/GralTable.js';
import {
Table,
TableBody,
TableHeader,
TableHeaderColumn,
TableRow,
TableRowColumn,
} from 'material-ui/Table';
class AlumnoListado extends React.Component {
render(... |
server/src/components/JVM.js | longtian/java-process-viewer | import React from 'react';
import Command from './Command';
import uuid from 'uuid';
class JVM extends React.Component {
render() {
const {
address,
pid,
command
} = this.props.match.params;
return (
<div>
<Command uuid={ uuid.v4()} host={ address } command={ `jcmd ${pid}... |
test/integration/Stepper/VerticalLinearStepper.spec.js | kittyjumbalaya/material-components-web | /* eslint-env mocha */
import React from 'react';
import {mount} from 'enzyme';
import {assert} from 'chai';
import getMuiTheme from 'src/styles/getMuiTheme';
import VerticalLinearStepper from './VerticalLinearStepper';
describe('<VerticalLinearStepper />', () => {
const muiTheme = getMuiTheme();
const mountWithCo... |
docs/app/Examples/modules/Progress/Variations/ProgressExampleSize.js | shengnian/shengnian-ui-react | import React from 'react'
import { Progress } from 'shengnian-ui-react'
const ProgressExampleSize = () => (
<div>
<Progress percent={10} size='tiny'>
tiny
</Progress>
<Progress percent={20} size='small'>
small
</Progress>
<Progress percent={35} size='medium'>
medium
</Progre... |
docs/src/app/components/pages/components/GridList/ExampleSingleLine.js | hwo411/material-ui | import React from 'react';
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import StarBorder from 'material-ui/svg-icons/toggle/star-border';
const styles = {
root: {
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'space-around',
},
gridLi... |
plugins/Files/js/components/uploaddialog.js | NebulousLabs/New-Sia-UI | import PropTypes from 'prop-types'
import React from 'react'
import fs from 'graceful-fs'
const UploadDialog = ({ source, path, actions }) => {
const onUploadClick = () => {
source.forEach(file => {
if (fs.statSync(file).isDirectory()) {
actions.uploadFolder(path, file)
} else {
actio... |
actor-apps/app-web/src/app/components/activity/UserProfile.react.js | way1989/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
import PeerStore from 'stores/PeerStore';
import DialogStore from 'stores/DialogStore';
import AvatarItem from... |
src/routes/user/List.js | caijinchun/hsweb-antd | import React from 'react'
import PropTypes from 'prop-types'
import { Table, Modal } from 'antd'
import styles from './List.less'
import classnames from 'classnames'
import AnimTableBody from '../../components/DataTable/AnimTableBody'
import { DropOption } from '../../components'
import { Link } from 'dva/router'
cons... |
client/.storybook/centered.js | usirin/koding | import React from 'react'
const style = {
height: '100vh',
position: 'absolute',
top: 0,
left: 30,
bottom: 0,
right: 30,
display: 'flex',
alignItems: 'center',
justifyContent: 'center'
}
export default (story) => (
<div style={style}>
<div style={{width: '100%'}}>
{story()}
</div>
... |
app/containers/DevTools.js | robot-head/LaserDream | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="H"
changePositionKey="Q"
>
<LogMonitor />
</DockMoni... |
src/components/Layout/Footer.js | zhangjingge/sse-antd-admin | import React from 'react'
import styles from './Footer.less'
import { config } from '../../utils'
const Footer = () => <div className={styles.footer}>
<div>{config.ContactsText}</div>
<div>{config.footerText}</div>
</div>
export default Footer
|
src/server.js | samdenicola/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 'babel-polyfill';
import path from 'path';
import e... |
app/containers/App/index.js | patrykomiotek/seo-monitor-front | /**
*
* App
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*/
import React from 'react';
import Helmet from 'react-helmet';
import styled from 'styled-components';
import Header from 'components/Header';
import F... |
example/examples/ViewsAsMarkers.js | ali-alamine/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView from 'react-native-maps';
import PriceMarker from './PriceMarker';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.7882... |
src/svg-icons/places/beach-access.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesBeachAccess = (props) => (
<SvgIcon {...props}>
<path d="M13.127 14.56l1.43-1.43 6.44 6.443L19.57 21zm4.293-5.73l2.86-2.86c-3.95-3.95-10.35-3.96-14.3-.02 3.93-1.3 8.31-.25 11.44 2.88zM5.95 5.98c-3.94 3.95... |
src/ui/components/StopButton.js | mattbasta/pinecast-studio | import React from 'react';
import SyrupyButton from './SyrupyButton';
export default class StopButton extends SyrupyButton {
render() {
const {state: {clicking, hovering}} = this;
const scale = hovering ? (clicking ? '0.9' : '1.05') : '1';
return <button
{...this.alwaysProps}
... |
packages/react/src/components/Message.js | wq/wq.app | import React from 'react';
import { useMessages } from '../hooks';
import PropTypes from 'prop-types';
export default function Message({ id }) {
const messages = useMessages(),
message = messages[id] || id;
return <>{message}</>;
}
Message.propTypes = {
id: PropTypes.string
};
|
src/routes.js | OrcTech/CanvasCraft | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
src/main.js | litel-fr/react-graph | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import App from "./components/App";
import Vis from "./components/Vis";
import Storm from "./components/Storm";
// const target = document.body;
const target = document.getElementById('root');
const node = (
<App>
<Vis/>
<... |
src/components/ShareExperience/common/SubmitArea.js | chejen/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { browserHistory, Link } from 'react-router';
import ButtonSubmit from 'common/button/ButtonSubmit';
import Checkbox from 'common/form/Checkbox';
import Modal from 'common/Modal';
import S... |
client/reactComponents/Turret.js | elliotaplant/tanks | import React from 'react';
import Barrel from './Barrel';
class Turret extends React.Component {
constructor(props) {
super(props);
this.position = props.position || '0 0 0';
this.rotation = props.rotation || '0 0 0';
this.barrelLength = props.barrelLength || 5;
this.activeControl = props.active... |
src/svg-icons/editor/drag-handle.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorDragHandle = (props) => (
<SvgIcon {...props}>
<path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/>
</SvgIcon>
);
EditorDragHandle = pure(EditorDragHandle);
EditorDragHandle.displayName = 'EditorDragHandle';
Edi... |
src/routes/Counter/components/Counter.js | parauchf/transmogrifier | import React from 'react'
export const Counter = (props) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {props.counter}</h2>
<button className='btn btn-default' onClick={props.increment}>
Increment
</button>
{' '}
<button className='btn btn-default' onClick={props.doubleAsync}>
... |
YEAR 3/SEM 1/MOBILE/mobile_exam_prep/screens/Experiment/ContestSubmissions/index.js | Zephyrrus/ubb | import React from 'react'
import PropTypes from 'prop-types'
import contestSubmissions from '../../../mocks/contestSubmissions.json'
import ContestSubmissions from './ContestSubmissions'
const ContestsScreen = () => <ContestSubmissions feed={contestSubmissions} loading={false}/>
ContestsScreen.navigationOptions = (... |
examples/js/column/column-align-table.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
src/components/Wrappers/withRenew.js | folio-org/ui-users | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import {
isEmpty,
} from 'lodash';
import { Callout } from '@folio/stripes/components';
import BulkRenewalDialog from '../BulkRenewalDialog';
import isOverridePossible from '../Loans/OpenLoans/helpers/isOve... |
src/components/FooterNav.js | nyugoh/blog | import React from 'react';
import { Button, Icon } from 'semantic-ui-react';
const FooterNav = props =>{
return (<div>
<div className="ui grid footer-nav padded">
<div className="eight wide column">
<Button icon><Icon name={'long arrow left'}/> Previous</Button>
</div>
<div className="eight wide column ... |
src/components/banner/banner.js | jdaio/jdaio.github.io | /**
* Banner Component
*
* @description Displays a content banner.
*/
import React from 'react';
import PropTypes from 'prop-types';
import Wrapper from '../wrapper/wrapper';
import style from './banner.module.scss';
function Banner({ id }) {
return (
<section className={`${style.banner} ${style.banne... |
src/svg-icons/action/info.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInfo = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/>
</SvgIcon>
);
ActionInfo = pure(ActionInfo);
ActionI... |
packages/material-ui-icons/src/GTranslate.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let GTranslate = props =>
<SvgIcon {...props}>
<path d="M20 5h-9.12L10 2H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h7l1 3h8c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zM7.17 14.59c-2.25 0-4.09-1.83-4.09-4.09s1.83-4.09 4.09-4.09c... |
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js | v2tmobile/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import LoginStore from 'stores/LoginStore';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { Pure... |
fields/components/ItemsTableCell.js | w01fgang/keystone | import React from 'react';
import classnames from 'classnames';
function ItemsTableCell ({ className, ...props }) {
props.className = classnames('ItemList__col', className);
return <td {...props} />;
};
module.exports = ItemsTableCell;
|
js/jqwidgets/demos/react/app/expander/toggleondoubleclick/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxExpander from '../../../jqwidgets-react/react_jqxexpander.js';
class App extends React.Component {
render() {
return (
<JqxExpander width={350} toggleMode={'dblclick'}>
<div>Early History of the Internet</di... |
react-router/components/Page.js | JonnyCheng/flux-examples | /**
* Copyright 2014, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import React from 'react';
import PageStore from '../stores/PageStore';
import { connectToStores } from 'fluxible-addons-react';
@connectToStores([PageStore], (context) => context.getSt... |
src/components/gif/index.js | macpie/Gif-Chrome-Extension | import React from 'react';
import * as _ from 'lodash';
import {Row, Col} from 'react-flexbox-grid/lib';
import * as Clipboard from '../../utils/Clipboard';
import GifsView from './GifsView';
import GifFilter from './GifFilter';
import GifEditModal from './GifEditModal';
const OFFSET = 30;
const orderBy = (arr) => {
... |
src/components/Home.js | jasonrundell/jasonrundell-react-site-2017 | import React from 'react';
const Home = () => (
<div>
<div className="ls-row">
<div className="ls-col-100">
<h1>Jason Rundell</h1>
<h2>Full Stack Web Developer</h2>
<p>Hey! I’m a self-taught full stack developer who utilizes the latest in Amazon Web Services,
PHP plus MySQ... |
frontend/src/components/editor/actions/quote.js | 1905410/Misago | // jshint ignore:start
import React from 'react';
import Action from './action';
import isUrl from 'misago/utils/is-url';
export default function(props) {
return (
<Action
execAction={insertQuote}
title={gettext("Insert quote")}
{...props}
>
<span className="material-icon">
fo... |
app/components/containers/about.js | erisalke/react-playground | import React from 'react';
const Home = React.createClass({
render: function() {
return (
<div className="home-page">
<h1>About me</h1>
<p>
My name is...
This is just a pet project to play around with React.
And now comes with crunchy continous deployment to AW... |
src/svg-icons/editor/format-bold.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatBold = (props) => (
<SvgIcon {...props}>
<path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1... |
webclient/src/edit/EditableSectionItem.js | jadiego/bloom | import React, { Component } from 'react';
import { Segment, Icon, Card, Image } from 'semantic-ui-react';
import EditSectionModal from './EditSectionModal';
import DeleteSectionModal from './DeleteSectionModal';
import { connect } from 'react-redux';
class EditableSectionItem extends Component {
render() {
... |
webapp/src/routes.js | alliance-genome/agr_prototype | import React from 'react';
import { Route, IndexRedirect } from 'react-router';
import Wordpress from './containers/wordpress';
import Layout from './containers/layout';
import Search from './containers/search';
import GenePage from './containers/genePage';
export default (
<Route component={Layout} path='/'>
<... |
src/Popover.js | wjb12/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const Popover = React.createClass({
mixins: [ BootstrapMixin ],
propTypes: {
/**
* An html id attribute, necessary for accessibility
... |
test/unit/shared/view/root/root-test.js | travi/travi.org-admin | import React from 'react';
import {createStore} from 'redux';
import {assert} from 'chai';
import {shallow} from 'enzyme';
import any from '@travi/any';
import Root from '../../../../../src/shared/views/root/root';
suite('production root module', () => {
const children = <div id="foo">bar</div>;
const store = crea... |
packages/react-error-overlay/src/containers/StackTrace.js | in2core/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, { Component } from 'react';
import StackFrame from './StackFrame';
import Collapsible from '../components/Coll... |
src/js/components/common/AddButton.js | athill/wimf | import React from 'react';
import {Icon} from './common';
const AddButton = ({title, clickHandler = e => e}) => {
const id = title.toLowerCase().split(' ').join('-') + '-button';
return <Icon id={id} icon='plus-square' size='3x' title={title }
onClick={e => {e.preventDefault(); clickHandler(); }} />
};
AddButton... |
src/components/sticky-container.js | mozilla/copyright | import React from 'react';
import classnames from "classnames";
var StickyButton = React.createClass({
getInitialState: function() {
return {
sticky: this.props.initialState || false
};
},
checkSticky: function() {
var position = window.scrollY;
if (this.props.stickyTo) {
return posi... |
app/components/layout/Footer/index.js | buildkite/frontend | // @flow
import React from 'react';
import Relay from 'react-relay/classic';
import Link from './link';
import Icon from 'app/components/shared/Icon';
type Props = {
viewer?: {
unreadChangelogs?: {
count: number
}
},
relay: Object
};
class Footer extends React.PureComponent<Props> {
componentD... |
src/js/components/Paragraph/stories/All.js | grommet/grommet | import React from 'react';
import { Paragraph } from 'grommet';
const sizes = ['xxlarge', 'xlarge', 'large', 'medium', 'small', '10px'];
const paragraphFiller = `
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.
`;
export const All = () => (... |
src/components/TopOptions/index.js | hasibsahibzada/quran.com-frontend | import PropTypes from 'prop-types';
import React from 'react';
import styled from 'styled-components';
import Share from 'components/Share';
import * as customPropTypes from 'customPropTypes';
const Title = styled.h1`
color: #000;
font-size: 18px;
`;
const TopOptions = ({ title, chapter }) => (
<div className="... |
lib/avatar/index.js | andyfen/react-native-UIKit | import React from 'react';
import {
StyleSheet,
Image,
View,
TouchableOpacity,
} from 'react-native';
const styles = StyleSheet.create({
border: {
borderColor: 'rgba(0, 0, 0, 0.6)',
borderWidth: 0.1,
backgroundColor: 'transparent',
position: 'absolute',
top: 0,
left: 0,
right: 0,
... |
RNLearning/__tests__/index.android.js | ivanl001/ReactNative-Learning | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
examples/Position.js | glortho/react-overlays | import React from 'react';
import Position from 'react-overlays/Position';
import Button from 'react-bootstrap/lib/Button';
const OverlayStyle = {
position: 'absolute'
};
const OverlayInnerStyle = {
margin: 5,
backgroundColor: '#555',
borderRadius: 3,
color: 'white',
padding: '2px 5px'
};
const CalloutS... |
src/jsx/AlbumManagerOverlay.js | TiffanyLeeRusso/mypictures | import React, { Component } from 'react';
import AlbumSelector from './AlbumSelector.js';
import '../css/AlbumManagerOverlay.css';
// AlbumManagerOverlay
export default class AlbumManagerOverlay extends Component {
constructor(props) {
super(props);
this.state = {
selectedAlbum: {name: "", id: "" }
... |
src/layouts/CoreLayout/CoreLayout.js | janceChun/redux-docker-swarm | import React from 'react'
import Header from '../../components/Header'
import '../../styles/core.scss'
export const CoreLayout = ({ children }) => (
<div>
<Header />
<div className='container text-center'>
<div>
{children}
</div>
</div>
</div>
)
CoreLayout.propTypes = {
children:... |
src/website/app/demos/Table/Table/examples/customHeaderCell.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import styled from '@emotion/styled';
import withProps from 'recompose/withProps';
import { pxToEm } from '../../../../../../library/styles';
import Table from '../../../../../../library/Table';
import data from '../../common/data';
import renderPropsDescription from '../../../com... |
Rosa_Madeira/Cliente/src/components/compra/CompraLista.js | victorditadi/IQApp | import React, { Component } from 'react';
import { View, Text, ScrollView, RefreshControl, ListView } from 'react-native';
import _ from 'lodash';
// import { ButtonHome } from '../common';
import { connect } from 'react-redux';
import { fetch_compras } from '../../actions';
import CompraItem from './CompraItem';
clas... |
src/List/Toolbar/Toolbar.component.js | Talend/react-talend-components | import React from 'react';
import Navbar from 'react-bootstrap/lib/Navbar';
import SelectAll from './SelectAll';
import SelectDisplayMode from './SelectDisplayMode';
import SelectSortBy from './SelectSortBy';
import Pagination from './Pagination';
import Filter from './Filter';
import Label from './Label';
import Acti... |
client/src/components/todolist/add_todo.js | pierrekraemer/modular-react-node-app | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Button, Form, InputGroup, InputGroupAddon, InputGroupButton, Input } from 'reactstrap';
import { addTodo } from 'actions/todolist';
const AddTodo = (props) => {
let textInput;
const handleSubmit = (event... |
browser/app/js/components/BrowserUpdate.js | abperiasamy/minio | /*
* Minio Cloud Storage (C) 2016 Minio, Inc.
*
* 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... |
src/client/todos/list.react.js | sljuka/portfulio | import * as actions from './actions';
import Component from '../components/component.react';
import React from 'react';
import Todo from './todo.react';
import immutable from 'immutable';
import {msg} from '../intl/store';
class List extends Component {
static propTypes = {
editables: React.PropTypes.instanceOf... |
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleReversedMobileVertically.js | clemensw/stardust | import React from 'react'
import { Grid } from 'semantic-ui-react'
const GridExampleReversedMobileVertically = () => (
<Grid reversed='mobile vertically'>
<Grid.Row>
<Grid.Column>Mobile Row 4</Grid.Column>
</Grid.Row>
<Grid.Row>
<Grid.Column>Mobile Row 3</Grid.Column>
</Grid.Row>
<Gri... |
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_06/finished/src/index.js | yevheniyc/C | import C from './constants'
import React from 'react'
import { render } from 'react-dom'
import routes from './routes'
import sampleData from './initialState'
import storeFactory from './store'
import { Provider } from 'react-redux'
import { addError } from './actions'
const initialState = (localStorage["redux-store"]... |
components/mailFlag.js | Yutenko/stories360 | import React from 'react'
import {observer} from 'mobx-react'
import {Container,Row,Col} from 'react-grid-system'
import {deepPurple500,orange500} from 'material-ui/styles/colors'
import {translate} from '../client/lang/translation'
import Paper from 'material-ui/Paper'
import TextField from 'material-ui/TextFiel... |
packages/icons/src/md/av/MusicVideo.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdMusicVideo(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M46 10v28c0 2.21-1.79 4-4 4H6c-2.21 0-4-1.79-4-4V10c0-2.21 1.79-4 4-4h36c2.21 0 4 1.79 4 4zm-4 28V10H6v28h36zm-26-8c0-3.31 2.69-6 6-6 .71 0 1 .14 ... |
fields/types/boolean/BooleanField.js | BlakeRxxk/keystone | import React from 'react';
import Field from '../Field';
import { Checkbox, FormField, FormNote } from 'elemental';
module.exports = Field.create({
displayName: 'BooleanField',
propTypes: {
indent: React.PropTypes.bool,
label: React.PropTypes.string,
note: React.PropTypes.string,
onChange: React.PropTypes.... |
client/modules/core/components/tests/postlist.js | warehouseman/meteor-mantra-kickstarter | import React from 'react';
const {describe, it} = global;
import {expect} from 'chai';
import {shallow} from 'enzyme';
import PostList from '../postlist.jsx';
describe('core.components.postlist', () => {
const posts = [
{title: 't-one', _id: 'one'},
{title: 't-two', _id: 'two'},
];
it('should list given... |
react_sources/components/App.js | nahcnuj/twitter-friends-manager | import ReactDOM from 'react-dom';
import React from 'react';
import Cookie from 'react-cookie';
import Request from 'superagent';
import Pager from 'react-pager';
import UserDataModel from '../models/UserDataModel';
import Manager from './Manager';
import AlertBox from './AlertBox';
const pagerTitles = {first: 'Firs... |
website/irulez/src/components/admin_menu/menus/Reorder.js | deklungel/iRulez | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
// fake data generator
const getItems = count =>
Array.from({ length: count }, (v, k) => k).map(k => ({
id: `item-${k}`,
content: `item ${k}`
... |
frontend/src/components/catalog_browser/catalog_browser.js | reabreu/discount-ascii-warehouse | import React from 'react';
import CatalogSearchForm from '../../containers/catalog_search_form/catalog_search_form';
import CatalogList from '../catalog_list/catalog_list';
import catalogInfinityScroll from '../../containers/catalog_infinity_scroll/catalog_infinity_scroll';
const InfinityList = catalogInfinityScroll(C... |
app/javascript/mastodon/features/direct_timeline/components/conversations_list.js | cobodo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ConversationContainer from '../containers/conversation_container';
import ScrollableList from '../../../components/scroll... |
test/specs/modules/Transition/TransitionGroup-test.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import Transition from 'src/modules/Transition/Transition'
import TransitionGroup from 'src/modules/Transition/TransitionGroup'
import * as common from 'test/specs/commonTests'
let wrapper
const wrapperMount = (...args) => (wrapper = mount(...args))
const wrapperShallow = (...args) => (wrap... |
src/components/soporte/chat.js | bombe-software/demos | import React, { Component } from 'react';
import { connect } from "react-redux";
import io from 'socket.io-client';
import WindowMessages from "./window_messages";
import TextMessage from "./text_message";
import { fetchMensajes } from "../../actions";
class Chat extends Component {
constructor(props) {
sup... |
5.AdvancedReactAndRedux/src/components/comment-box.js | Branimir123/Learning-React | import React from 'react';
import { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../actions';
class CommentBox extends Component{
constructor(props) {
super(props);
this.state = { comment: '' };
}
handleChange(event) {
this.setState({ ... |
src/components/theme-legacy/form/instructions/about.js | MoveOnOrg/mop-frontend | import React from 'react'
const About = () => (
<div>
<h4>Petition Background</h4>
<p>In 2-3 sentences, why should people be concerned about this issue? Is there a deadline? Have you been <i>personally</i> affected by the issue?</p>
<h4>Example:</h4>
<p>“My daughter Maria attends Dewey Elementa... |
docs/src/app/components/pages/components/Subheader/Page.js | spiermar/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import subheaderReadmeText from './README';
import listExampleChatCode from '!ra... |
examples/src/components/Contributors.js | OpenGov/react-select | import React from 'react';
import createClass from 'create-react-class';
import PropTypes from 'prop-types';
import Select from 'react-select';
const CONTRIBUTORS = require('../data/contributors');
const MAX_CONTRIBUTORS = 6;
const ASYNC_DELAY = 500;
const Contributors = createClass({
displayName: 'Contributors',
p... |
node_modules/react-router/es6/RouteContext.js | aleksandrsmolin/react-redux-weather | import warning from './routerWarning';
import React from 'react';
var object = React.PropTypes.object;
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent trans... |
client/common/containers/DevTools.js | qiuye1027/screenInteraction | import React from 'react'
import {createDevTools} from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
export default createDevTools(
<DockMonitor defaultPosition="right"
defaultIsVisible={false}
toggleVisibilityKey="ctrl-h"... |
frontend/client.js | ellmetha/machina-singlepageapp | import 'babel-polyfill';
import { createHistory } from 'history';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { browserHistory, match, Router } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import routes from './routes';
... |
test/OverlayTriggerSpec.js | xuorig/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import OverlayTrigger from '../src/OverlayTrigger';
import Popover from '../src/Popover';
import Tooltip from '../src/Tooltip';
import { render } from './helpers';
describe('OverlayTrigger', function() {
it('Should create OverlayTrigg... |
src/eggs/About.js | alexcpendleton/pondryhills.com | import React from 'react';
class About extends React.Component {
buildEmailHref(email, subject) {
return `mailto:${email}?subject=${subject}`;
}
render() {
const {email, subject} = this.props;
return (
<nav id='about'>
<a id="github" href={this.props.github}>Github</a> | <a id="email" hr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.