path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/components/Button.js | jcasner/EarthDawnDiceRoller | import React, { Component } from 'react';
import { Text, TouchableHighlight } from 'react-native';
import { buttonStyles } from './styles';
class Button extends Component {
render() {
const { handlePress, step, text, bigButton } = this.props;
return (
<TouchableHighlight
style={[buttonStyles.b... |
src/components/ScrollToTopRoute.js | ramaya314/UndocuFunds | import React, { Component } from 'react';
import { Route, withRouter } from 'react-router-dom';
class ScrollToTopRoute extends Component {
componentDidUpdate(prevProps) {
if (this.props.path === this.props.location.pathname && this.props.location.pathname !== prevProps.location.pathname) {
window.scrollTo(... |
public/app/components/ui-project-tab/properties-window.js | vincent-tr/mylife-home-studio | 'use strict';
import React from 'react';
import icons from '../icons';
import PropertiesLabel from '../properties/properties-label';
import PropertiesTitle from '../properties/properties-title';
import PropertiesEditor from '../properties/properties-editor';
import ImageSelectorContainer from '../../containers/ui-pr... |
client/utility/groupViewHelper.js | AngryPulpGophers/fairshare | import React from 'react';
var Helper = module.exports;
Helper.prettyDate = function(milliseconds){
var date = new Date(milliseconds);
//console.log('samsam',this.props.location,'and pj', this.props.params)
var am = "AM";
var hours = date.getHours();
var minutes = date.getMinutes();
if (hours > 12) {
... |
src/js/admin/articles/filters/filter-bar-bottom/filter-bar-bottom.js | ucev/blog | import React from 'react'
import FilterBar from '../filter-bar'
import GroupOperationSelect from '../group-operation-select'
const FilterBarBottom = () => (
<FilterBar type="bottom">
<GroupOperationSelect />
</FilterBar>
)
export default FilterBarBottom
|
app/containers/Home.js | thomasantony/BudgetFirst | import React, { Component } from 'react';
import { Link } from 'react-router';
import {bindActionCreators} from 'redux';
import { connect } from 'react-redux';
import * as AccountActions from '../actions/accounts'
import * as LedgerActions from '../actions/ledger'
// import styles from './Home.module.css';
import { cre... |
client/components/AceEditor/AceEditor.js | YMFE/yapi | import React from 'react';
import mockEditor from './mockEditor';
import PropTypes from 'prop-types';
import './AceEditor.scss';
const ModeMap = {
javascript: 'ace/mode/javascript',
json: 'ace/mode/json',
text: 'ace/mode/text',
xml: 'ace/mode/xml',
html: 'ace/mode/html'
};
const defaultStyle = { width: '100... |
routes.js | m4n3z40/fluxone | import React from 'react';
import { Route, DefaultRoute } from 'react-router';
import RootComponent from 'components/RootComponent.js';
import AppComponent from 'components/AppComponent.js';
export default function getRoutes() {
return (
<Route name="app" path="/" handler={RootComponent}>
<Defa... |
docs/app/Examples/elements/Container/Variations/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import { Message } from 'semantic-ui-react'
const ContainerVariationsExamples = () => (
<ExampleSection title='Variations'>
<Comp... |
src/js/ui/card.js | SpaceHexagon/pylon | import React from 'react';
import Icon from './icon.js';
export default class Card extends React.Component {
constructor() {
super();
// Initial state of the component
this.state = {
visible: true,
background: "",
thumbnailState: 0
};
}
componentDidMount () {
if (!!this.props.thumbURL) {
if (... |
routes/oldHome.js | Belhalaribi/PFE | import React, { Component } from 'react';
import AppBar from 'material-ui/AppBar';
import Header from '../components/Header.js';
import Content from '../components/Content.js';
import Footer from '../components/Footer.js';
import Root from '../components/Root.js';
import Paper from 'material-ui/Paper';
import Menu fr... |
app/javascript/mastodon/features/status/components/detailed_status.js | rainyday/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import StatusContent from '../../../components/status_content';
import MediaGallery from... |
config/express.js | DockerVN/simple-paas-api | 'use strict';
/**
* Module dependencies.
*/
import 'babel/register';
import fs from 'fs';
import http from 'http';
import express from 'express';
import jwt from 'express-jwt';
import morgan from 'morgan';
import bodyParser from 'body-parser';
import compress from 'compression';
import methodOverride from 'method-o... |
node_modules/redbox-react/examples/react-transform-catch-errors/index.js | hnikupet/dddhackaton | import React from 'react'
import App from './components/App'
const root = document.getElementById('root')
React.render(<App />, root)
|
packages/expo-dev-menu/vendored/react-native-gesture-handler/src/GestureComponents.js | exponentjs/exponent | import React from 'react';
import ReactNative from 'react-native';
import createNativeWrapper from './createNativeWrapper';
const MEMOIZED = new WeakMap();
function memoizeWrap(Component, config) {
if (Component == null) {
return null;
}
let memoized = MEMOIZED.get(Component);
if (!memoized) {
memoiz... |
analysis/druidguardian/src/modules/talents/Pulverize.js | anom0ly/WoWAnalyzer | import { t } from '@lingui/macro';
import { formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import { SpellLink } from 'interface';
import Analyzer from 'parser/core/Analyzer';
import BoringSpellValue from 'parser/ui/BoringSpellValue';
import Statistic from 'parser/ui/Statistic';
import STAT... |
src/App/scenes/Characters/Characters.js | JonatanSCS/Marvel-Data | import React from 'react'
import { Route } from 'react-router-dom'
import CharacterList from './containers/CharacterList/CharacterList'
import CharacterDetail from './containers/CharacterDetail/CharacterDetail'
const Characters = ({ match }) => (
<div>
<h2>Characters</h2>
<Route exact path={`${match.url}/`} ... |
src/SplitButton.js | PeterDaveHello/react-bootstrap | /* eslint react/prop-types: [2, {ignore: "bsSize"}] */
/* BootstrapMixin contains `bsSize` type validation */
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import DropdownStateMixin from './DropdownStateMixin';
import Button from './Button';
import Butto... |
node/client/src/routes.js | wasong/cmpt433 | import React from 'react'
import Radium from 'radium'
import Dashboard from './Dashboard'
const styles = {
display: 'flex',
minHeight: '100vh',
}
export default Radium(() => (
<div style={styles}>
<Dashboard />
</div>
))
|
fields/types/url/UrlColumn.js | helloworld3q3q/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var UrlColumn = React.createClass({
displayName: 'UrlColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue () {
va... |
src/svg-icons/maps/add-location.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsAddLocation = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm4 8h-3v3h-2v-3H8V8h3V5h2v3h3v2z"/>
</SvgIcon>
);
MapsAddLocation = pure(Map... |
src/routes/makeRoutes.js | Hylozoic/hylo-redux | import React from 'react'
import { Route, IndexRoute } from 'react-router'
import Signup from '../containers/Signup'
import Login from '../containers/Login'
import SetPassword from '../containers/SetPassword'
import App from '../containers/App'
import AllCommunities, { AllPosts } from '../containers/AllCommunities'
imp... |
app/components/queue/queue.js | ritishgumber/dashboard-ui | import React from 'react';
import {connect} from 'react-redux';
import Toolbar from '../toolbar/toolbar.js';
import Footer from '../footer/footer.jsx';
import FirstDisplay from './firstDisplay.js'
import {fetchQueue,resetQueueState} from '../../actions';
import QueueCRUD from './queueCRUD.js'
import RefreshIndicator fr... |
es/Stepper/StepLabel.js | uplevel-technology/material-ui-next | 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 = {... |
packages/react/src/components/molecules/CalloutLink/CalloutLink.stories.js | massgov/mayflower | import React from 'react';
import { StoryPage } from 'StorybookConfig/preview';
import CalloutLink from './index';
import CalloutLinkDocs from './CalloutLink.md';
import calloutLinkOptions from './CalloutLink.knobs.options';
const Template = (args) => <CalloutLink {...args} />;
export const CalloutLinkExample = Templ... |
src/shared/element-react/dist/npm/es6/src/input-number/InputNumber.js | thundernet8/Elune-WWW | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import { Componen... |
src/svg-icons/action/settings-input-svideo.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsInputSvideo = (props) => (
<SvgIcon {...props}>
<path d="M8 11.5c0-.83-.67-1.5-1.5-1.5S5 10.67 5 11.5 5.67 13 6.5 13 8 12.33 8 11.5zm7-5c0-.83-.67-1.5-1.5-1.5h-3C9.67 5 9 5.67 9 6.5S9.67 8 10.5 8h... |
src/balloon.js | toolmantim/sams-29th-birthday | import React from 'react';
import Color from 'color';
import classnames from 'classnames';
import uuid from 'uuid';
import ExplosionOfSams from './explosion-of-sams';
import './balloon.css';
class Balloon extends React.Component {
static colors = [
"#FFBA03",
"#03BEFF",
"#E366FD"
]
constructor(pro... |
packages/wix-style-react/src/StatisticsWidget/test/StatisticsWidget.visual.js | wix/wix-style-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import StatisticsWidget from '../StatisticsWidget';
import { SIZES } from '../constants';
import WixStyleReactProvider from '../../WixStyleReactProvider';
const sizes = Object.values(SIZES);
const tests = [
{
describe: 'sanity',
its: [... |
src/components/inputs/TextInput.js | rghorbani/react-native-common | /**
* Copyright 2016 Reza (github.com/rghorbani)
*
* @flow
*/
'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import {
TextInput as RNTextInput,
StyleSheet,
Animated,
TouchableOpacity,
} from 'react-native';
import _ from 'lodash';
import {
Colors,
Constants,
Modal,
Im... |
src/SectionHeaderActivityModal/index.js | christianalfoni/ducky-components | import IconAvaWrapper from '../IconAvaWrapper';
import React from 'react';
import PropTypes from 'prop-types';
import ButtonIcon from '../ButtonIcon';
import classNames from 'classnames';
import styles from './styles.css';
function SectionHeaderActivityModal(props) {
return (
<div className={classNames(styles.wr... |
src/www/js/components/card-size-button.js | nickolusroy/react_dnd | import React from 'react';
import { SubmitButton } from '../form-fields/submit-button.js';
export class CardSizeButton extends React.Component {
constructor(props) {
super(props);
this.updateSize = this.updateSize.bind(this);
};
updateCardSize(size) {
var cards = document.querySelector('.spell-card... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/Tests/setupTests.js | nuwand/carbon-apimgt | /*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
examples/todos/src/components/Link.js | gaearon/redux | import React from 'react'
import PropTypes from 'prop-types'
const Link = ({ active, children, onClick }) => (
<button
onClick={onClick}
disabled={active}
style={{
marginLeft: '4px',
}}
>
{children}
</button>
)
Link.propTypes = {
active: PropTypes.bool.isRequ... |
src/containers/Home/Home.js | nbuechler/friendly-finder | import React, { Component } from 'react';
import { Link } from 'react-router';
import { Button, Jumbotron } from 'react-bootstrap';
class Home extends Component {
render() {
return (
<Jumbotron style={{margin: '0%', padding: '10%', background: '#111 none repeat scroll 0% 0%'}}>
<h2 style={{textAlig... |
src/docs/examples/ProgressBar/Example20Percent.js | dryzhkov/ps-react-dr | import React from 'react';
import ProgressBar from 'ps-react/ProgressBar';
/** An example showing a progress bar of 20 percent */
const Example20Percent = () => {
return <ProgressBar percent={20} width={100} />
};
export default Example20Percent; |
src/components/shared/no-connection.js | quanglam2807/webcatalog | import React from 'react';
import PropTypes from 'prop-types';
import Button from '@material-ui/core/Button';
import ErrorIcon from '@material-ui/icons/Error';
import Typography from '@material-ui/core/Typography';
import { withStyles } from '@material-ui/core/styles';
const styles = (theme) => ({
root: {
align... |
SentenceMosaics/index.android.js | DFAxCMU/sentence-mosaics | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class SentenceMosaics extends Component {
render() {
return (
<View style={styles.con... |
src/svg-icons/image/looks-3.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks3 = (props) => (
<SvgIcon {...props}>
<path d="M19.01 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 7.5c0 .83-.67 1.5-1.5 1.5.83 0 1.5.67 1.5 1.5V15c0 1.11-.9 2-2 2h-4v... |
app/javascript/mastodon/features/audio/index.js | maa123/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { formatTime } from 'mastodon/features/video';
import Icon from 'mastodon/components/icon';
import classNames from 'classnames';
import { throttle } from 'lodash';
import { getPointerPosition, ... |
src/redux/utils/createDevToolsWindow.js | teebszet/iplayer-azListing | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import DevTools from '../../containers/DevToolsWindow'
export default function createDevToolsWindow (store) {
const win = window.open(
null,
'redux-devtools', // give it a name so it reuses the same window
`... |
src/layout/hero-head.js | bokuweb/re-bulma | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from '../../build/styles';
import { getCallbacks } from '../helper/helper';
export default class HeroHead extends Component {
static propTypes = {
style: PropTypes.object,
children: PropTypes.any,
className: PropT... |
src/svg-icons/action/android.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAndroid = (props) => (
<SvgIcon {...props}>
<path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8... |
assets/javascripts/kitten/karl/pages/homepage/partners/index.js | KissKissBankBank/kitten | import React from 'react'
import styled from 'styled-components'
import { Card } from './components/card'
import { pxToRem, Title, Carousel, mediaQueries, Grid, GridCol } from 'kitten'
import classNames from 'classnames'
const StyledPartners = styled.div`
.Partners__col {
display: flex;
}
.Partners__colCard... |
src/icons/FolderSpecialIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class FolderSpecialIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 12H24l-4-4H8c-2.2 0-4 1.8-4 4v24c0 2.2 1.8 4 4 4h32c2.2 0 4-1.8 4-4V16c0-2.2-1.8-4-4-4zm-4.13 22... |
src/main/assets/components/ListPoster.js | kristenkotkas/moviediary | import React from 'react';
import '../static/css/index.css';
import FontAwesome from 'react-fontawesome';
export default class ListPoster extends React.Component {
constructor(props) {
super(props);
}
/*
<span className={'hoverOpen'}>Open</span>*/
removeMovie() {
this.props.removeCallback(this.props.mo... |
node_modules/rebass/src/Arrow.js | HasanSa/hackathon |
import React from 'react'
import Base from './Base'
/** Arrow for use in dropdowns and other UI elements */
const Arrow = ({ direction, children, ...props }, { rebass }) => {
return (
<Base
{...props}
className='Arrow'
baseStyle={{
display: 'inline-block',
width: 0,
he... |
examples/js/hacker-news/client/containers/App.js | reimagined/resolve | import React from 'react'
import { NavLink, Link as NormalLink } from 'react-router-dom'
import styled from 'styled-components'
import { renderRoutes } from 'react-router-config'
import { Splitter } from '../components/Splitter'
import { Header } from './Header'
import { LoginInfo } from './LoginInfo'
import { StaticIm... |
app/routes/home-routes.js | KleeGroup/focus-starter-kit | import React from 'react';
import HomeView from '../views/home';
const routes = [
{
path: 'home',
component: HomeView
},
{
path: 'admin',
component: (() => <div><h2>{'Administration'}</h2></div>)
}
];
export default routes;
|
src/client/components/menu/chatSearch.js | uuchat/uuchat | import React, { Component } from 'react';
import { Modal, message, Input } from 'antd';
import ChatMessageItem from '../message/chatMessageItem';
import String2int from '../common/utils';
import '../../static/css/common.css';
import '../../static/css/customerSuccess.css';
let chatHistory = {};
let searchContent = '';
... |
app/containers/RepoListItem/index.js | darrellesh/redux-react-boilerplate | /**
* RepoListItem
*
* Lists the name and the issue count of a repository
*/
import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { FormattedNumber } from 'react-intl';
import { makeSelectCurrentUser } from 'containers/App/selectors';
import... |
index.js | michaelchance/stacksnowverflow | require('babel-core/polyfill');
import { createStore, applyMiddleware } from 'redux';
import thunkMiddleware from 'redux-thunk';
import apiMiddleware from './apiMiddleware.js';
import loggerMiddleware from 'redux-logger';
import rootReducer from './reducers.js';
import React from 'react';
import { Provider } from 're... |
src/app/management/Users/index.js | omrilitov/react-universal | import React from 'react';
import {connect} from 'react-redux';
import {asyncConnect} from 'redux-connect';
import * as users from './redux';
import Users from './Users';
import {Card} from 'material-ui';
const card = {
backgroundColor: 'white'
};
@asyncConnect([{
promise: ({store: {dispatch}}) => dispatch(users.... |
app/components/D3Map/index.js | impact-learning/frontend-demo | /**
*
* D3Map
*
*/
import React from 'react';
import {
Map,
TileLayer,
} from 'react-leaflet';
import topojson from 'topojson';
import styles from './styles.css';
import MapOverlay from './map-overlay';
import { toD3Path } from './utils';
/* eslint-disable react/prefer-stateless-function */
class D3Map extends R... |
examples/js/selection/all-select.js | rolandsusans/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-alert: 0 */
/* eslint guard-for-in: 0 */
/* eslint no-console: 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 <... |
src/assets/js/react/router/coreFontRouter.js | blueliquiddesigns/gravity-forms-pdf-extended | import React from 'react'
import PropTypes from 'prop-types'
import { HashRouter as Router, Route, Switch } from 'react-router-dom'
import CoreFontContainer from '../components/CoreFonts/CoreFontContainer'
/**
* @package Gravity PDF
* @copyright Copyright (c) 2020, Blue Liquid Designs
* @license http://op... |
app/javascript/mastodon/features/compose/containers/warning_container.js | tri-star/mastodon | import React from 'react';
import { connect } from 'react-redux';
import Warning from '../components/warning';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { me } from '../../../initial_state';
const buildHashtagRE = () => {
try {
const HASHTAG_SEPARATORS = '_\\u00b7\... |
js/components/footer/badgeFooter.js | bengaara/simbapp |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Footer, FooterTab, Text, Body, Left, Right, Icon } from 'native-base';
import { Actions } from 'react-native-router-flux'... |
docs/app/Examples/modules/Dimmer/States/DimmerExampleActive.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Dimmer, Segment } from 'semantic-ui-react'
const DimmerExampleActive = () => (
<Segment>
<Dimmer active />
<p>
<img src='http://semantic-ui.com/images/wireframe/short-paragraph.png' />
</p>
<p>
<img src='http://semantic-ui.com/images/wireframe/short-par... |
fixtures/nesting/src/modern/index.js | cpojer/react | import React from 'react';
import {StrictMode} from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import App from './App';
import {store} from '../store';
ReactDOM.render(
<StrictMode>
<Provider store={store}>
<App />
</Provider>
</StrictMode>,
document.getElement... |
my-app/src/App.js | sThig/jabbascrypt | import React, { Component } from 'react';
import './App.css';
import Nav from './components/scaffold/nav';
import Content from './components/scaffold/content';
import { Route } from 'react-router-dom';
import Projects from './components/pages/projects.js';
import About from './components/pages/about';
import Blog from ... |
front-end/src/components/header.js | aravindio/readable | import React from 'react'
import { Link } from 'react-router-dom'
import { Navbar, Nav, NavItem } from 'react-bootstrap'
import { LinkContainer } from 'react-router-bootstrap'
const Header = ({ categories }) => {
return (
<div className='app'>
<Navbar inverse collapseOnSelect>
<Navbar.Header>
... |
app/src/js/main.js | a3itj/react-setup | "use strict";
import React from 'react';
import {render} from 'react-dom';
import { Router } from 'react-router';
import routes from './routes';
console.log(routes)
render(<Router>{routes}</Router>,document.getElementById('app'))
|
addons/themes/forty/includes/Footer.js | rendact/rendact | import React from 'react';
class Footer extends React.Component {
render(){
return (
<footer id="footer">
<div className="inner">
<ul className="copyright">
<li>Forty based theme</li>
<li>html5up</li>
<li>converted by Rendact Team</li>
</ul>
... |
app/containers/LanguageProvider/index.js | adoveil/max | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
docs/src/pages/layout/grid/SpacingGrid.js | dsslimshaddy/material-ui | // @flow weak
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Grid from 'material-ui/Grid';
import { FormLabel, FormControlLabel } from 'material-ui/Form';
import Radio, { RadioGroup } from 'material-ui/Radio';
import Paper from 'mat... |
Tests/Components/RoundedButtonTest.js | tk1cntt/KanjiMaster | // https://github.com/airbnb/enzyme/blob/master/docs/api/shallow.md
import test from 'ava'
import React from 'react'
import RoundedButton from '../../App/Components/RoundedButton'
import { shallow } from 'enzyme'
test('component exists', t => {
const wrapper = shallow(<RoundedButton onPress={() => {}} text='hi' />)
... |
src/components/nav/header.js | ChrisRast/Le-Taguenet | import React from 'react';
import * as ui from 'semantic-ui-react';
export default function Header (props) {
return (
<ui.Header
textAlign="center"
className="space-bottom"
>
<ui.Header.Content
as="h1"
size="huge"
className="ui text"
>
Le Taguenet
</ui.Header.Content>
<ui.Header.... |
src/pages/authorizing.js | guzmonne/mcp | import React from 'react'
import Rx from 'rx-dom'
import RowColXS12 from '../components/bootstrap/row.col-xs-12.js'
import Hypnotize from '../components/helpers/hypnotize.js'
import Loading from '../components/helpers/loading.js'
import Social from '../components/helpers/social_icons.helper.js'
class Authorizing exten... |
app/containers/HomePage/index.js | kdavidmoore/react-redux-kata | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
Docker/KlusterKiteMonitoring/klusterkite-web/src/components/Form/submit.js | KlusterKite/KlusterKite | import React from 'react';
import { Row } from 'formsy-react-components';
import Icon from 'react-fa';
import './styles.css';
export default class Submit extends React.Component { // eslint-disable-line react/prefer-stateless-function
static propTypes = {
canSubmit: React.PropTypes.bool.isRequired,
buttonT... |
step4-router/node_modules/react-router/modules/IndexLink.js | jintoppy/react-training | import React from 'react'
import Link from './Link'
/**
* An <IndexLink> is used to link to an <IndexRoute>.
*/
const IndexLink = React.createClass({
render() {
return <Link {...this.props} onlyActiveOnIndex={true} />
}
})
export default IndexLink
|
src/containers/round.js | RamonSchmitt/draw-and-guess-front | import React from 'react';
import Choice from '../components/choice';
import Answer from '../components/answer';
import Timer from '../components/timer';
class Round extends React.Component {
generateAnswer() {
let possibleAnswers = this.props.roundChoices
console.log(possibleAnswers)
let picked = Math... |
src/index.js | mpbill/ca.scta.admin.client | /* eslint-disable import/default */
import React from 'react';
import { render } from 'react-dom';
import { browserHistory } from 'react-router';
import { AppContainer } from 'react-hot-loader';
import Root from './components/Root';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tel... |
client/src/components/BackButton/BackButton.js | silverstripe/silverstripe-asset-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import droppable from 'components/GalleryItem/droppable';
import Badge from 'components/Badge/Badge';
import i18n from 'i18n';
class BackButton extends Component {
render() {
const { isDropping, badge, onClick } = this.props;
const... |
src/components/pages/DirectorPage.js | zdizzle6717/universal-react-movie-app | 'use strict';
import React from 'react';
import { Link } from 'react-router';
import NotFoundPage from '../pages/NotFoundPage';
import DirectorActions from '../../actions/DirectorActions';
import DirectorStore from '../../stores/DirectorStore';
export default class DirectorPage extends React.Component {
constructor(... |
src/helpers/BibleRefSelector.js | OCMC-Translation-Projects/ioc-liturgical-react | import React from 'react';
import PropTypes from 'prop-types';
import { get } from 'lodash';
import Select from 'react-select';
import {Col, ControlLabel, Grid, Row } from 'react-bootstrap';
import MessageIcons from './MessageIcons';
class BibleRefSelector extends React.Component {
constructor(props) {
super(pro... |
docs/src/sections/GlyphiconSection.js | egauci/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function GlyphiconSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
js/pages/iptt_report/components/report/reportBody.js | mercycorps/TolaActivity | import React from 'react';
import IPTTHeader from './header';
import ReportTableHeader from './tableHeader';
import ReportTableBody from './tableBody';
export default () => {
return <main className="iptt_table_wrapper">
<div id="id_div_top_iptt_report">
<IPTTHeader />
... |
public/src/js/components/buckets/comp-linkInput.js | asarode/learn-buckets | import React from 'react';
class LinkInput extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
let {
index,
onTitleChange,
onUrlChange,
onTypeChange,
onRemoveClick
} = this.props
return (
<div>
<input type="text" placeholder="Link title" onC... |
src/containers/About/index.js | korabh/quran.com-frontend | import React from 'react';
import IndexHeader from 'components/IndexHeader';
import Helmet from 'react-helmet';
export default () => (
<div>
<Helmet title="About Quran.com" />
<IndexHeader noSearch />
<div className="about-text container-fluid">
<div className="row">
<div className="col-md-... |
client/containers/NavigationContainer.js | horiaradu/twitter-challenge | import React from 'react';
import {connect} from 'react-redux';
import Navigation from '../components/Navigation';
import * as actionCreators from '../actions';
export default connect(
mapStateToProps,
actionCreators
)(Navigation);
function mapStateToProps(state) {
return {
isAuthenticated: state.getIn(['au... |
packages/icons/src/md/av/SurroundSound.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdSurroundSound(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M40 8c2.21 0 4 1.79 4 4v24c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4V12c0-2.21 1.79-4 4-4h32zM15.51 32.49A11.978 11.978 0 0 1 12 24c0-3.07 1.18-6.... |
lib/manager/components/version/VersionRetrievalBadge.js | conveyal/datatools-manager | // @flow
import Icon from '@conveyal/woonerf/components/icon'
import React from 'react'
import toSentenceCase from '../../../common/util/to-sentence-case'
import type { FeedVersion, RetrievalMethod } from '../../../types'
type Props = {
retrievalMethod?: RetrievalMethod,
version?: FeedVersion
}
const iconForRet... |
src/components/modal/Mask.js | quark-ui/quark-ui | /**
* Mask Component
* @author ryan.bian
*/
import React from 'react';
import PropTypes from 'prop-types';
import styles from './Modal.css';
const Mask = ({ visible, children }) => (
<div className={styles[`mask${visible ? '--visible' : ''}`]}>
{children}
</div>
);
Mask.defaultProps = {
visible: false,
}... |
src/App.js | css459/personal-website | import React from 'react';
import Resume from "./components/resume";
import Research from "./components/research";
import Web from "./components/web";
import IOS from "./components/ios";
import UNIX from "./components/unix";
import HomeDecoration from "./components/homeDecoration";
import Stackoverflow from "./resourc... |
static/js/index.js | deVinnnie/SDO_Live | import React from 'react';
import ReactDOM from 'react-dom';
import {Main} from './Main';
import {Spinner} from './Spinner';
window.onload = function () {
launchFullScreen(document.documentElement);
//Request Full Screen. Normally requires user interaction. Use Firefox and alter config so that:
//full-scre... |
node_modules/react-bootstrap/es/Checkbox.js | okristian1/react-info | 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/encoded/static/components/viz/ChartDetailCursor/CursorViewBounds.js | hms-dbmi/fourfront | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import _ from 'underscore';
import * as vizUtil from '@hms-dbmi-bgm/shared-portal-components/es/components/viz/utilities';
import { console, isServerSide, layout, analytics, WindowEventDelegator } from '@hms-dbmi-bgm/shared-portal-components/es... |
src/svg-icons/social/notifications.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialNotifications = (props) => (
<SvgIcon {...props}>
<path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 ... |
src/svg-icons/action/info-outline.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInfoOutline = (props) => (
<SvgIcon {...props}>
<path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h... |
src/js/components/icons/base/Code.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/results/ResultListWrapper.react.js | codeforamerica/citybook | import React, { Component } from 'react';
import LoadingSpinner from '../LoadingSpinner.react.js';
import Grid from 'react-bootstrap/lib/Grid';
import ResultsList from './ResultsList.react.js';
import ResultFilters from './ResultFilters.react.js';
import '../../styles/loading-spinner.scss';
import '../../styles/styles.... |
examples/src/components/UsersField.js | urvashi01/react-select | import GravatarOption from './CustomOption';
import GravatarValue from './CustomSingleValue';
import React from 'react';
import Select from 'react-select';
const USERS = require('../data/users');
var UsersField = React.createClass({
propTypes: {
hint: React.PropTypes.string,
label: React.PropTypes.string,
},
r... |
fields/types/text/TextFilter.js | xyzteam2016/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormField, FormInput, FormSelect, SegmentedControl } from 'elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
const MODE_OPTIONS = [
{ label: 'Contains', value: 'contai... |
src/shared/views/plans/plans/PlansList/PlansList.js | in-depth/indepth-demo | import React from 'react'
import { PlanLink } from '../index'
import styles from './plansList.css'
const PlansList = (props) => {
return (
<div className={styles.main}>
<div className={styles.pageHeader}>
<h1>PLAN</h1>
</div>
<h2 className={styles.subHeader}>Pick a plan below to get a ... |
src/svg-icons/av/mic-off.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMicOff = (props) => (
<SvgIcon {...props}>
<path d="M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28zm-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18l5.98 5.99zM4.27 3L3 4.2... |
admin/client/components/ItemsTable/ItemsTableCell.js | tony2cssc/keystone | import React from 'react';
var ItemsTableCell = React.createClass({
displayName: 'ItemsTableCell',
propTypes: {
className: React.PropTypes.string,
},
getDefaultProps () {
return {
className: '',
};
},
render () {
const className = `ItemList__col ${this.props.className}`;
return (
<td {...this.pro... |
resources/apps/frontend/src/pages/services/index.js | johndavedecano/PHPLaravelGymManagementSystem | import React from 'react';
import Loadable from 'components/Loadable';
import {PrivateLayout} from 'components/Layouts';
import renderRoutes from './../routes';
export default {
exact: false,
auth: true,
path: '/services',
component: ({routes}) => {
return <PrivateLayout>{renderRoutes(routes)}</PrivateLay... |
src/components/NotFoundPage.js | Opelvectra/hello.react.redux | import React from 'react';
import { Link } from 'react-router';
const NotFoundPage = () => {
return (
<div>
<h4>
404 Page Not Found
</h4>
<Link to="/"> Go back to homepage </Link>
</div>
);
};
export default NotFoundPage;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.