path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
modules/RouteContext.js | bs1180/react-router | import React from 'react'
const { object } = React.PropTypes
/**
* 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 transitions.
*/
const RouteContext = {
prop... |
src/js/common.js | scherler/Modern-JavaScript-Explained-For-Dinosaurs | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router } from 'react-router-dom';
import App from './components/App';
import '../less/index.less'; // tell webpack to request the transpiling of less to css
const root = document.getElementById('react');
ReactDOM.render(<Router><App... |
src/components/core/index.js | jnarowski/react-metropolis | import React, { Component } from 'react';
import ComponentConfig from '../shared/componentConfig.js';
import Item from '../core/item.js';
const conf = ComponentConfig.getAll();
export default class Index extends Component {
render() {
let items = [];
Object.keys(conf).forEach(function(key) {
let obj = con... |
src/js/components/SearchInput/index.js | nathanuphoff/datahub.client | import React from 'react'
import handlers from './events'
export default function SearchInput({ props }) {
const { filter } = props.store
const { value, initialised } = filter
const { storeFocus, fetchQuery, fetchSuggestions, clearInput } = handlers(props)
console.log(initialised)
return <div class... |
scorebord/src/components/styling/Box.js | FrankSchutte/Kwizzert | import React from 'react';
import './Box.css';
const Box = (props) => {
if (props.rating === undefined) {
props.rating = 'rating_none';
}
return (
<div className={props.rating}>
{props.children}
</div>
)
};
export default Box; |
src/routes/Home/components/HomeView.js | mjchamoures/milpitasInfo | import React from 'react';
import TopStories from './TopStories';
import FeaturedBusinesses from './FeaturedBusinesses';
import './styles/HomeView.css';
import { Col, Panel } from 'react-bootstrap';
import DuckImage from '../assets/Duck.png';
import SwimImage from '../assets/Swim.png';
import DebbieImage from '../asse... |
src/components/Chat/Message/NewUserMessage.js | fabianobizarro/chat-app | import React, { Component } from 'react';
class NewUserMessage extends Component {
render() {
return (
<div className="box notification message-others">
<article className="media">
<div className="media-content">
<div className="conta... |
app/javascript/mastodon/components/autosuggest_textarea.js | kazh98/social.arnip.org | import React from 'react';
import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container';
import AutosuggestEmoji from './autosuggest_emoji';
import AutosuggestHashtag from './autosuggest_hashtag';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from... |
src/packages/@ncigdc/routes/HomeRoute.js | NCI-GDC/portal-ui | // @flow
import React from 'react';
import { Row, Column } from '@ncigdc/uikit/Flex';
import styled from '@ncigdc/theme/styled';
import GDCAppsRow from '@ncigdc/components/GDCApps/GDCAppsRow';
import ExploringLinks from '@ncigdc/components/ExploringLinks';
import HomeSearch from '@ncigdc/components/HomeSearch';
import... |
src/client/controllers/error.js | bookbrainz/bookbrainz-site | /*
* Copyright (C) 2019 Prabal Singh
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distr... |
src/components/Main.js | ford25v6/gallery-react | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
function getRangeRandom(low, high) {
return Math.ceil(Math.random() * (high - low) + low);
}
function get30DegRandom() {
return ((Math.random() > 0.5 ? '' : '-') + Math.ceil(Math.random... |
src/app/components/Textarea/index.js | YagoQuinoy/isomorphic-app-template | import React from 'react'
const Textarea = ({label, name, value, onChange}) => (
<label>
{label}
<textarea
name={name}
value={value}
onChange={onChange}
/>
</label>
)
export default Textarea
|
app/comp/index.js | coldhurt/react-study | import React from 'react';
import Button from '../common/button';
const Index = React.createClass({
onClickButton: function(e){
alert(e.target);
},
render: function(){
return <div>
<Button clickFunc={this.onClickButton} btnText="Search" />
</div>;
}
});
export ... |
examples/todos/containers/AddTodo.js | paulkogel/redux | import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
let AddTodo = ({ dispatch }) => {
let input
return (
<div>
<form onSubmit={e => {
e.preventDefault()
if (!input.value.trim()) {
return
}
dispatch(addTodo(input.v... |
app/containers/NotFoundPage/index.js | dvm4078/dvm-blog | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
export default function NotFound() {
return (
<article>
<h1>Sida</h1>
</article>
);
}
|
src/components/auth/require_auth.js | vinej/react-remux | import React, { Component } from 'react';
export default function(ComposedComponent, store, stateNavigator) {
class Authentication extends Component {
static contextTypes = {
router: React.PropTypes.object
}
componentWillMount() {
if (!store.isAuthenticated()) {
stateNavigator.navig... |
src/parser/paladin/holy/modules/features/MasteryEffectiveness.js | FaideWW/WoWAnalyzer | import React from 'react';
import { Trans, t } from '@lingui/macro';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import Combatants from 'parser/shared/modules/Combatants';
import StatTracker from 'parser/shared/modules/StatTracker';... |
fields/types/textarray/TextArrayFilter.js | vokal/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import {
FormField,
FormInput,
FormSelect,
} from '../../../admin/client/App/elemental';
const MODE_OPTIONS = [
{ label: 'Contains', value: 'contains' },
{ label: 'Exactly', value: 'exactly' },
{ label: 'Begins with', value: 'beginsWith' },
{ ... |
packages/website/builder/pages/index/index.js | fopsdev/cerebral | import React from 'react'
function Index(props) {
return (
<div className="index-container">
<div
style={{
background: 'url(/images/cerebral.png)',
backgroundRepeat: 'no-repeat',
backgroundSize: 'contain',
backgroundPosition: 'center',
width: '100%'... |
client/src/play/ControlPanel.js | xpsurgery/shopping-cart | import React from 'react'
import { connect } from 'react-redux'
import { play, pause, resetGame } from './actionCreators'
const ControlPanel = ({dispatch}) =>
<div className='control-panel'>
<button className='btn btn-danger' onClick={() => dispatch(play())}>
Play
</button>
<button className='btn b... |
server/containers/DevTools.js | ArayZou/wakealive | 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="ctrl-h"
changePositionKey="ctrl-w">
<LogMonitor />
... |
admin/client/App/shared/CreateForm.js | benkroeger/keystone | /**
* The form that's visible when "Create <ItemName>" is clicked on either the
* List screen or the Item screen
*/
import React from 'react';
import assign from 'object-assign';
import vkey from 'vkey';
import AlertMessages from './AlertMessages';
import { Fields } from 'FieldTypes';
import InvalidFieldType from '... |
src/ShallowTraversal.js | CurtisHumphrey/enzyme | import React from 'react';
import isEmpty from 'lodash/isEmpty';
import isSubset from 'is-subset';
import {
coercePropValue,
propsOfNode,
isSimpleSelector,
splitSelector,
selectorError,
isCompoundSelector,
selectorType,
AND,
SELECTOR,
nodeHasType,
} from './Utils';
export function childrenOfNode(n... |
src/components/Current.js | devoidofgenius/react-weather | import React from 'react';
import '../css/Current.css';
class Current extends React.Component {
render() {
const altImageCheck = (!this.props.isSun && this.props.currentIconKey === "clear") || (!this.props.isSun && this.props.currentIconKey === "fewClouds");
return (
<div className="current-weather">
... |
demo/loading/loading.js | darkyen/react-mdl | import React from 'react';
import ProgressBar from '../../src/ProgressBar';
import Spinner from '../../src/Spinner';
class Demo extends React.Component {
render() {
return (
<div>
<p>Simple MDL Progress Bar</p>
<ProgressBar progress={44} />
<p>MD... |
packages/icons/src/md/content/Backspace.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdBackspace(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M44 6c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H14c-1.38 0-2.47-.72-3.19-1.78L0 23.99 10.81 7.76C11.53 6.7 12.62 6 14 6h30zm-6 25.17L30.83 24 38 16.83... |
src/components/UserProfile/UserProfile.js | chengjianhua/book-share | /**
* Created by cjh95414 on 2016/5/21.
*/
import React, { Component } from 'react';
import { Link } from 'react-router';
import Subheader from 'material-ui/Subheader';
import FontIcon from 'material-ui/FontIcon';
import RaisedButton from 'material-ui/RaisedButton';
import { Tabs, Tab } from 'material-ui/Tabs';
imp... |
com/jessewarden/contacts/contactClasses/PhoneForm.js | JesterXL/react-bootstrap-express-cassandra-contacts | import React from 'react';
import ReactDOM from 'react-dom';
class PhoneForm extends React.Component
{
// found here http://jsfiddle.net/kaleb/Dm4Jv/
formatPhone(obj)
{
console.log("formatPhone, obj:", obj);
var numbers = obj.replace(/\D/g, ''),
char = {0:'(',3:') ',6:' - '};
obj = '';
for (var i = 0; i <... |
docs/pages/components/menus.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'components/menus';
const requireDemo = require.context('docs/src/pages/components/menus', false, /\.(js|tsx)$/);
const requireRaw... |
src/svg-icons/av/sort-by-alpha.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSortByAlpha = (props) => (
<SvgIcon {...props}>
<path d="M14.94 4.66h-4.72l2.36-2.36zm-4.69 14.71h4.66l-2.33 2.33zM6.1 6.27L1.6 17.73h1.84l.92-2.45h5.11l.92 2.45h1.84L7.74 6.27H6.1zm-1.13 7.37l1.94-5.18 1.94 ... |
examples/src/complex.js | aleksei0807/orthodox-calendar | import React from 'react';
import ReactDOM from 'react-dom';
import OrthodoxCalendar from '../../lib/index';
ReactDOM.render(
<OrthodoxCalendar dayicon={true} trapeza_img={true} server="https://orthodox-calendar.herokuapp.com/" />,
document.getElementById('root')
);
|
src/web/client/scripts/index.js | MiddleBack/anymock | /**
* Created by tanxiangyuan on 16/8/23.
*/
'use strict';
import React from 'react';
import {render} from 'react-dom';
import {useRouterHistory, Router, Route, IndexRedirect,Link} from 'react-router';
import {createStore, applyMiddleware} from 'redux';
import {Provider} from 'react-redux';
import thunk from 'redux-t... |
src/index.js | the-economist-editorial/component-silver-tab-bar | import React from 'react';
export default class SilverTabBar extends React.Component {
static get propTypes() {
return {
tabBarDefinitions: React.PropTypes.array.isRequired,
onPassPlatformToEditor: React.PropTypes.func.isRequired,
};
}
// Default tab definition for documentation, if nothing... |
src/svg-icons/content/forward.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentForward = (props) => (
<SvgIcon {...props}>
<path d="M12 8V4l8 8-8 8v-4H4V8z"/>
</SvgIcon>
);
ContentForward = pure(ContentForward);
ContentForward.displayName = 'ContentForward';
ContentForward.muiNam... |
plugins/subschema-plugin-project/src/compile.js | jspears/subschema-devel | import { availablePlugins, transform } from 'babel-standalone';
import form from './form';
import reactClassDisplayName from 'mrbuilder-plugin-babel/react-class-display-name';
import transformClassProps from 'babel-plugin-transform-class-properties';
import babelrc from './babelrc.json';
if (!availablePlugins['./reac... |
src/app/widgets/Visualizer/Notifications.js | cheton/piduino-grbl | import PropTypes from 'prop-types';
import React from 'react';
import Anchor from 'app/components/Anchor';
import { ToastNotification } from 'app/components/Notifications';
import Space from 'app/components/Space';
import i18n from 'app/lib/i18n';
import {
NOTIFICATION_PROGRAM_ERROR,
NOTIFICATION_M0_PROGRAM_PAU... |
newclient/scripts/components/user/revise/entity-declaration/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/app/management/index.js | drivesense/server | 'use strict';
import React from 'react';
import {Route} from 'react-router';
import Managers from './Managers';
import Schools from './Schools';
import {requireRole} from '../auth/routing';
export default function (store) {
return (
<Route path='management'>
<Route path='managers' component={Managers} {..... |
examples/huge-apps/routes/Course/components/Course.js | jbbr/react-router | import React from 'react';
import Dashboard from './Dashboard';
import Nav from './Nav';
var styles = {};
styles.sidebar = {
float: 'left',
width: 200,
padding: 20,
borderRight: '1px solid #aaa',
marginRight: 20
};
class Course extends React.Component {
static loadProps (params, cb) {
console.log('C... |
src/routes/notFound/index.js | loremtest/skb5-with-storybook | /**
* 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 React from 'react';
import Layout from '../../compo... |
src/components/LettersDisplay.js | gabrielrotbart/memorx | import React from 'react';
import Canvas from './Canvas';
import randomBetween from '../helpers/random-between';
const LETTER_WIDTH = 10
const LETTER_HEIGHT = 20
class LettersDisplay extends React.Component {
_renderLetters() {
return this.props.letters.map((letter, index) => {
const xCoordinate = random... |
src/parser/hunter/beastmastery/modules/talents/ScentOfBlood.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import ResourceIcon from 'common/ResourceIcon';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
/**
* Barbed Shot generates 8 additional F... |
docs/app/Examples/elements/Button/Types/ButtonLabeledBasicExample.js | jcarbo/stardust | import React from 'react'
import { Button, Icon, Label } from 'stardust'
const ButtonLabeledExample = () => (
<div>
<Button labeled>
<Button color='red'>
<Icon name='heart' /> Like
</Button>
<Label basic color='red' pointing='left'>2,048</Label>
</Button>
<Button labeled>
... |
src/svg-icons/action/credit-card.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCreditCard = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/>
</SvgIcon>
);
Action... |
dpxdt/server/static/release-config/src/App.js | bslatkin/dpxdt | import React, { Component } from 'react';
import { Router, Route, browserHistory } from 'react-router'
import { applyMiddleware, compose, createStore, combineReducers } from 'redux';
import persistState from 'redux-localstorage';
import { reducer as formReducer } from 'redux-form';
import { Provider } from 'react-redux... |
test/helpers.js | snadn/react-bootstrap | import React from 'react';
import { cloneElement } from 'react';
export function shouldWarn(about) {
console.warn.called.should.be.true;
console.warn.calledWithMatch(about).should.be.true;
console.warn.reset();
}
/**
* Helper for rendering and updating props for plain class Components
* since `setProps` is de... |
node_modules/react-bootstrap/es/Table.js | cmccandless/SolRFrontEnd | 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/components/atoms/Caption/index.stories.js | DimensionLab/narc | import React from 'react'
import { storiesOf } from '@storybook/react'
import Caption from '.'
storiesOf('Caption', module)
.add('default', () => (
<Caption>Hello</Caption>
))
.add('reverse', () => (
<Caption reverse>Hello</Caption>
))
|
docs/app/Examples/collections/Table/States/index.js | koenvg/Semantic-UI-React | import React from 'react'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
const States = () => {
return (
<ExampleSection title='States'>
<ComponentExample
title='Positive / Negative'
... |
src/react-todo/AddTodo.js | rdwrcode/myreact-demo | import React from 'react';
import { connect } from 'react-redux';
import { addTodo } from './actions';
const AddTodo = ({ dispatch }) => {
let input;
return (
<div>
<input ref={node => {
input = node;
}} />
<button onClick={() => {
dispatch(addTodo(input.value));
inp... |
frontend/src/components/common/fieldLabelWithTooltip.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import { FormLabel } from 'material-ui/Form';
import { withStyles } from 'material-ui/styles';
import classname from 'classnames';
import TooltipIcon from './tooltipIcon';
const styleSheet = theme => ({
root: {
display: 'flex',
alignItems: 'cente... |
paraviewweb/src/React/Widgets/LayoutsWidget/TwoBottom.js | CordyChen/VisMechan | import React from 'react';
import style from 'PVWStyle/ReactWidgets/LayoutsWidget.mcss';
export default function twoBottom(props) {
return (
<table className={props.active === '3xB' ? style.activeTable : style.table} name="3xB" onClick={props.onClick}>
<tbody>
<tr>
<td className={props.ac... |
test/helpers/shallowRenderHelper.js | benliuss/react-gallery | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
app/components/ActivityFeedBox/index.js | projectcashmere/web-server | /**
*
* ActivityFeedBox
*
*/
import React from 'react';
import styled from 'styled-components';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
// import Entry from '../ActivityFeedEntry'
function ActivityFeedBox() {
return (
<Wrapper className="overviewBox">
<div classN... |
src/svg-icons/maps/beenhere.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsBeenhere = (props) => (
<SvgIcon {...props}>
<path d="M19 1H5c-1.1 0-1.99.9-1.99 2L3 15.93c0 .69.35 1.3.88 1.66L12 23l8.11-5.41c.53-.36.88-.97.88-1.66L21 3c0-1.1-.9-2-2-2zm-9 15l-5-5 1.41-1.41L10 13.17l7.59... |
example/react-counter/index.js | justinjung04/treeful | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import CounterControl from './components/counter-control';
import Counter from './components/counter';
import Treeful from '../../src/treeful';
class App extends Component {
constructor () {
super();
Treeful.dev();
Treeful.add('count', ... |
analysis/shamanrestoration/src/modules/features/StatValues.js | yajinni/WoWAnalyzer | import { Trans } from '@lingui/macro';
import React from 'react';
import SPELLS from 'common/SPELLS';
import BaseHealerStatValues from 'parser/shared/modules/features/BaseHealerStatValues';
import STAT from 'parser/shared/modules/features/STAT';
import StatTracker from 'parser/shared/modules/StatTracker';
import Heali... |
frontend/src/pages/sys-admin/logs-page/file-access-item-menu.js | miurahr/seahub | import React from 'react';
import { gettext } from '../../../utils/constants';
import { Dropdown, DropdownMenu, DropdownToggle, DropdownItem } from 'reactstrap';
class FilterMenu extends React.Component {
constructor(props) {
super(props);
this.state = {
isMenuShown: false
};
}
toggleMenu ... |
src/svg-icons/device/brightness-low.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessLow = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ... |
web/assets/js/homepage2/Banner.js | xuqiantong/NY_Auto | /**
* Created by jeanliu on 3/16/17.
*/
import React from 'react';
export default class Banner extends React.Component {
render() {
return(
<div className="banner">
<img src="./static/bundles/images/pexel.jpg" alt="./images/carAlt.png"
width="1440" height... |
AssetsMgmtApp/AppIOS/Views/Home/About.js | sunlrain/AssetsMgmt | import React, { Component } from 'react';
import {
StyleSheet,
View,
Image,
Text,
WebView,
Navigator,
TouchableOpacity,
} from 'react-native';
const styles = StyleSheet.create({
container: {
backgroundColor: '#ffffff',
flex: 1,
justifyContent: 'center',
alignItems: 'center',
padding... |
src/containers/auth/AuthenticateView.js | eventures-io/ldn-retail-demo | /**
* Authenticate Screen
* - Entry screen for all authentication
* - User can tap to login, forget password, signup...
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import {
View,
Image,
StyleSheet,
} from 'react-nat... |
src/svg-icons/action/accessibility.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccessibility = (props) => (
<SvgIcon {...props}>
<path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"/>
</SvgIcon>
);
ActionAccessibility = pure(ActionAccessib... |
src/svg-icons/action/search.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSearch = (props) => (
<SvgIcon {...props}>
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1... |
app/containers/app.container.js | nightred/agent |
import React from 'react';
import Axios from 'axios';
import TopBar from '../components/topbar.component';
import MenuItem from '../components/menuitem.component';
import Welcome from '../components/welcome.component';
class AppContainer extends React.Component {
constructor(props) {
super(props);
this.st... |
test/regressions/site/src/tests/BottomNavigation/LabelBottomNavigation.js | und3fined/material-ui | // @flow weak
import React from 'react';
import { BottomNavigation, BottomNavigationButton } from 'material-ui/BottomNavigation';
export default function LabelBottomNavigation() {
return (
<BottomNavigation index={0} showLabel={false}>
<BottomNavigationButton
label="Recents"
icon={<span cl... |
src/routes/Map/components/Map.js | alukach/react-map-app | import React from 'react'
import Helmet from "react-helmet"
import MapGL from 'react-map-gl'
import config from 'config'
import './Map.scss'
export const MapView = () => {
let viewport = {
height: 900, // TODO: How to do full height?
latitude: 37.78,
longitude: -122.45,
zoom: 11,
startDragLngLat:... |
src/SolidImage.js | MiguelCrespo/react-progressive-loading | import React from 'react';
const SolidImage = ({src, alt, setRef, className, color, width, height, isLoaded}) => {
let classes = 'solid-color';
if (isLoaded) {
classes += ' loaded';
}
return <div className="progressive-image_container progressive-image_container-solid">
<div className={classes} style... |
src/components/common/svg-icons/image/looks-3.js | abzfarah/Pearson.NAPLAN.GnomeH | 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... |
static/node_modules/react-date-picker/src/YearView.js | unmeshpro/easyPost | import React from 'react'
import { findDOMNode } from 'react-dom'
import Component from 'react-class'
import assign from 'object-assign'
import times from './utils/times'
import join from './join'
import toMoment from './toMoment'
import { Flex, Item } from 'react-flex'
import bemFactory from './bemFactory'
const ... |
pages/dashboard.js | sertaconay/freeside-lms | import React, { Component } from 'react';
export default class DashboardPage extends Component {
showDashboardPage() {
console.log(this);
}
render() {
return (
<h1>Dashboard</h1>
);
}
}
|
ReactNativeCameraTest/App.js | agenthunt/react-native-scratchpad | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Dimensions
} from 'react-native';
import Camera from 'react-native-camera';
const styles = StyleSheet.create({
container: {
fle... |
src/components/Layout.js | Lambda-CDM/react-material-dashboard | require('normalize.css');
require('styles/App.scss');
import React from 'react';
import AppBar from 'material-ui/AppBar';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import { Link } from 'react-router';
import IconButton from 'material-ui/IconButton';
import getMuiTheme from '... |
examples/SyncValidation.js | jaredpalmer/formik | import React from 'react';
import { Formik, Field, Form, ErrorMessage } from 'formik';
import { Debug } from './Debug';
const validate = values => {
const errors = {};
if (!values.email) {
errors.email = 'Required';
} else if (!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(values.email)) {
errors.emai... |
src/svg-icons/communication/import-contacts.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationImportContacts = (props) => (
<SvgIcon {...props}>
<path d="M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 2... |
app/assets/javascripts/src/components/users/NewUserForm.js | talum/creamery | import React from 'react'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
import { connect } from 'react-redux'
import { addUser } from '../../actions/users'
import Form from '../sharedComponents/Form'
import InputField from '../sharedComponents/InputField'
import SubmitButton from '../sharedCom... |
pootle/static/js/editor/components/UnitSource.js | dwaynebailey/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import { t } from 'utils/i18n'... |
examples/dynamic-segments/app.js | kenwheeler/react-router | import React from 'react';
import { history } from 'react-router/lib/HashHistory';
import { Router, Route, Link, Redirect } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<ul>
<li><Link to="/user/123">Bob</Link></li>
<li><Link to="/user/abc">Sally</... |
webapp/votify/client/routes.js | patrickml/votify | import React from 'react';
import { mount } from 'react-mounter';
import { FlowRouter } from 'meteor/kadira:flow-router';
import MainLayout from './imports/components/layouts/main.layout';
import Queue from './imports/components/pages/queue.page';
// home page
FlowRouter.route('/', {
name: 'home',
action() {
m... |
modules/RoutingContext.js | samidarko/react-router | import React from 'react'
import invariant from 'invariant'
import getRouteParams from './getRouteParams'
const { array, func, object } = React.PropTypes
/**
* A <RoutingContext> renders the component tree for a given router state
* and sets the history object and the current location in context.
*/
const RoutingC... |
app/components/prompt/index.js | MakersLab/farm-client | import React from 'react';
import Modal from 'react-modal';
import H1 from '../h1';
import modalStyle from '../fileUploadModal/style.css';
import ControllButton from '../controllButton';
const Prompt = ({ children, isOpen, confirm, reject }) => (
<Modal
isOpen={isOpen}
className={modalStyle.modal}
overlayClas... |
src/components/body/menu/options/BagModal.js | TechyFatih/Nuzlog | import React from 'react';
import { Modal, Panel,
FormGroup, InputGroup, FormControl, Button } from 'react-bootstrap';
import { connect } from 'react-redux';
class BagModal extends React.Component {
constructor() {
super();
}
render() {
return (
<Modal show={this.props.show}
onEnter={thi... |
pages/home.js | davidpham5/resume | import React from 'react';
import Welcome from '../components/Welcome';
function Home() {
return (
<div>
<Welcome />
</div>
)
}
export default Home
|
imports/ui/pages/events/NewEvent.js | KyneSilverhide/expense-manager | import React from 'react';
import Grid from 'material-ui/Grid';
import EventEditor from '../../components/events/EventEditor.js';
const NewEvent = () => (
<Grid container align="center" justify="center" className="NewEvent">
<Grid item xs={12} sm={8} md={5}>
<EventEditor />
</Grid>
</Grid>
);
export... |
client/components.js | Pocket-titan/Tonlist | import React from 'react'
import {mobilebutton} from './style.css'
import {RaisedButton} from 'material-ui'
export let View = 'div'
export let Text = 'span'
export let TextInput = (props) =>
<input
{...props}
type="text"
onChange={e => {
props.onTextChange && props.onTextChange(e.target.value)
... |
assets/javascripts/kitten/karl/pages/kissbankers-modal/components/header.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import { pxToRem, stepToRem, TYPOGRAPHY, ScreenConfig, COLORS } from 'kitten'
const borderWidth = pxToRem(2)
const borderColor = COLORS.line1
const StyledHeader = styled.header`
@media (max-width: ${pxToRem(ScreenCon... |
webpack/ForemanTasks/Components/TasksTable/formatters/durationCellFormmatter.js | adamruzicka/foreman-tasks | import React from 'react';
export const durationCellFormmatter = value => (
<span className="param-value" title={value.tooltip}>
{value.text}
</span>
);
|
routes.js | arpith/hamelin | import React from 'react';
import { Route } from 'react-router';
import App from './components/App';
import Video from './components/Video';
const routes = (
<Route path='/' component={App}>
<Route path='/:videoId' component={Video} />
</Route>
);
export default routes;
|
client/commons/Copyright.js | rockchalkwushock/photography-frontend | import React from 'react';
import ReactGA from 'react-ga';
const Copyright = ({ event, text, url }) => (
<ReactGA.OutboundLink
className='icon'
eventLabel={event}
rel='nreferrer noopener'
target='blank'
to={url}
>
{text}
</ReactGA.OutboundLink>
);
export default Copyright;
|
frontend/src/shared-file-view-svg.js | miurahr/seahub | import React from 'react';
import ReactDOM from 'react-dom';
import SharedFileView from './components/shared-file-view/shared-file-view';
import SharedFileViewTip from './components/shared-file-view/shared-file-view-tip';
import './css/svg-file-view.css';
const { fileName, rawPath, err } = window.shared.pageOptions;
... |
src/client/components/general/ProfileImage.component.js | DBCDK/content-first | import React from 'react';
import Icon from '../base/Icon';
import SkeletonUser from '../base/Skeleton/User';
import Text from '../base/Text';
import TruncateMarkup from 'react-truncate-markup';
import {withUser} from '../hoc/User';
/*
<ProfileImage
user={user}
namePosition: false (default) || 'bottom' || 'right'... |
src/components/MenuTitle.js | TeemuTT/jyvaslounas-react | import React from 'react'
export function MenuTitle({options, active, onClick}) {
return (
<div className="menuTitle">
{options.map(option => {
return (
option === active ? <a href="#" className="btn active" key={option}>{option} </a>
: <a... |
src/svg-icons/image/lens.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLens = (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 2z"/>
</SvgIcon>
);
ImageLens = pure(ImageLens);
ImageLens.displayName = 'ImageLens';
Ima... |
packages/form/tests/react/index.js | govau/uikit | import React from 'react';
import ReactDOM from 'react-dom';
import { AUlabel, AUhintText, AUerrorText, AUformGroup, AUfieldset, AUForm, AUlegend } from './form.js';
import AUtextInput from '../../../text-inputs/src/js/react';
import AUheading from '../../../headings/src/js/react';
import AUselect from '../../../selec... |
packages/dejavu-main/app/src/components/QueryExplorer.js | appbaseio/dejaVu | // @flow
import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
FlashMessage as ErrorFlashMessage,
ConnectApp,
appReducers,
} from '@appbaseio/dejavu-browser';
const { getIsConnected, getAppname, getUrl } = appReducers;
const LZMA = require('lzma/src/lzma-c');
require('urlsafe-b... |
dev/js/uiComponents/text/text.js | artisnull/React-CMS | /*
Filename: img.js
Author: Zach Lambert
Last Updated: 17 Apr 2017
Description: Object definition for Img. Includes prototypal definitions
and methods. Usage to ensure same data structure for all components and to
expose the toComponent() method, which returns a React component.
*/
import React from 'react';
import ... |
frontend/app/site/pages/Contact/Contact.js | briancappello/flask-react-spa | import React from 'react'
import Helmet from 'react-helmet'
import { compose } from 'redux'
import { connect } from 'react-redux'
import reduxForm from 'redux-form/es/reduxForm'
import formActions from 'redux-form/es/actions'
const { reset } = formActions
import { contact } from 'site/actions'
import { DangerAlert, Pa... |
docs/Documentation/WaveEffectPage.js | reactivers/react-mcw | /**
* Created by muratguney on 29/03/2017.
*/
import React from 'react';
import {
Card,
CardHeader,
WaveEffect,
Button,
Table,
TableRow,
TableHeaderColumn,
TableHeader,
TableRowColumn,
TableBody
} from '../../lib';
import Highlight from 'react-highlight.js'
export default clas... |
examples/complete/material/src/index.js | prescottprue/react-redux-firebase | import React from 'react'
import ReactDOM from 'react-dom'
import { initScripts } from './utils'
import createStore from './store/createStore'
import { version } from '../package.json'
import { env } from './config'
import App from './containers/App'
import './index.css'
// import * as serviceWorker from './serviceWor... |
ajax/libs/react-instantsearch/4.2.0/Dom.js | seogi1004/cdnjs | /*! ReactInstantSearch UNRELEASED | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && de... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.