path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/layout/header/index.js | MoosemanStudios/app.moosecraft.us | import React from 'react';
import NavigationBar from 'src/components/layout/navigation';
export default () => (
<NavigationBar />
);
|
docs/app/Examples/elements/Segment/Variations/SegmentFloatedExample.js | jcarbo/stardust | import React from 'react'
import { Segment } from 'stardust'
const SegmentFloatedExample = () => (
<div>
<Segment floated='left'>
This segment will appear to the left
</Segment>
<Segment floated='right'>
This segment will appear to the right
</Segment>
</div>
)
export default SegmentFl... |
imports/client/ui/pages/Template/TopImageSection/index.js | focallocal/fl-maps | import React from 'react'
import { Container, Row, Col } from 'reactstrap'
import i18n from '/imports/both/i18n/en'
import './styles.scss'
const { content } = i18n.Template.first_section
const {top_image_url} = content
const TopImageSection = () => (
<section id='top-image-section'>
<Container>
<Row>
... |
src/components/Controls/Controls.js | stefanwille/react-gameoflife | import React from 'react'
import {connect} from 'react-redux'
import './Controls.scss'
import {play, pause, step, randomize, clear} from 'redux/modules/actionCreators'
let Controls = ({playing, speed, onPlay, onPause, onStep, onRandomize, onClear}) => {
const handlePlayOnClick = (event) => onPlay(event, speed)
c... |
src/docs/Example.js | zeegeek/ps-react-reusable-comp | import React from 'react';
import PropTypes from 'prop-types';
import CodeExample from './CodeExample';
class Example extends React.Component {
constructor(props) {
super(props);
this.state = { showCode: false };
}
toggleCode = event => {
event.preventDefault();
this.setState(prevState => {
... |
App/components/shared/EventSummaryBox/EventSummaryBox.js | araneforseti/caretaker-app | import React from 'react';
import { Text, View } from 'react-native';
import styles from './style';
const _needsVolunteer = (volunteer) => volunteer === 'TBD';
export default function EventSummaryBox( { name, volunteer } ) {
const needsVolunteer = _needsVolunteer(volunteer);
return <View style={[styles.container... |
src/routes/login/index.js | caijinchun/hsweb-antd | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import { Button, Row, Form, Input } from 'antd'
import { config } from '../../utils'
import styles from './index.less'
const FormItem = Form.Item
const Login = ({
login,
dispatch,
form: {
getFieldDecorator,
valida... |
client/src/components/Hero/HeroButton.js | nrandecker/nightlife | import React from 'react';
import PropTypes from 'prop-types';
const HeroButton = ({ buttonText, buttonAction }) => (
<span
onClick={buttonAction}
className="navbar-item"
role="button"
tabIndex="0"
>
<a className="button is-danger is-inverted">
<span classNam... |
myriad-scheduler/src/main/resources/webapp/js/components/TasksComponent.js | apache/incubator-myriad | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
app/app.js | ajfuller/react-casestudy | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
/* eslint-disable import/no-unresolved, import/extensions */
// Load the favicon, the manifest.json file and the .htaccess file
import 'file?n... |
src/containers/Charts/reactChart2/components/line/line.js | EncontrAR/backoffice | import React from 'react';
import {Line} from 'react-chartjs-2';
import { data } from './lineConfig';
class LineChart extends React.Component {
render() {
return (
<Line data={data} />
);
}
};
export default LineChart;
|
app/js/components/App.js | jagatjeevan/react-setup | import React, { Component } from 'react';
import {
Link,
Route,
Switch,
withRouter,
} from 'react-router-dom';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import paths from '../paths';
import Dashboard from './Dashboard';
import About f... |
static/programming-tutorials-backup/src/projects/frontend/lessons/JQSelectors.js | EdwardRees/EdwardRees.github.io | import React from 'react';
const JQSelectors = () => (
<div>
<h2>jQuery Selectors</h2>
</div>
)
export { JQSelectors }; |
src/frontend/components/buttons/RssButton.js | gbgtech/gbgtechWeb | import React from 'react';
const RssButton = React.createClass({
render() {
return (
<a className="rss-button main-follow-button" href='/api/rss' target="_blank" rel="noopener noreferrer"/>
);
}
});
export default RssButton;
|
src/index.js | zlargon/invoice | import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import App from './app';
// Needed for onTouchTap
injectTapEventPlugin();
ReactDOM.render(
<MuiThemeProvider>
<App/>
</Mui... |
index.js | Kureev/react-native-side-menu | // @flow
import React from 'react';
import {
PanResponder,
View,
Dimensions,
Animated,
TouchableWithoutFeedback,
} from 'react-native';
import PropTypes from 'prop-types';
import styles from './styles';
type WindowDimensions = { width: number, height: number };
type Props = {
edgeHitWidth: number,
tole... |
packages/core/admin/admin/src/content-manager/components/Wysiwyg/WysiwygFooter.js | wistityhq/strapi | import React from 'react';
import PropTypes from 'prop-types';
import { useIntl } from 'react-intl';
import { Box } from '@strapi/design-system/Box';
import { Flex } from '@strapi/design-system/Flex';
import { Typography } from '@strapi/design-system/Typography';
import Expand from '@strapi/icons/Expand';
import { Expa... |
packages/material-ui-icons/src/SignalCellularConnectedNoInternet3Bar.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path fillOpacity=".3" d="M22 8V2L2 22h16V8z" /><path d="M17 22V7L2 22h15zm3-12v8h2v-8h-2zm0 12h2v-2h-2v2z" /></g>
, 'SignalCellularConnectedNoInternet3Bar');
|
packages/material-ui-icons/src/Feedback.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Feedback = props =>
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z" />
</SvgIcon>;
Feedback = pure(Feedback);
Fee... |
src/components/board/Cell.js | josephquested/plainscreen | import React from 'react'
export default React.createClass({
render () {
return (
<td className={this.props.class}></td>
)
}
})
|
modules/RouteContext.js | okcoker/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/svg-icons/image/switch-video.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageSwitchVideo = (props) => (
<SvgIcon {...props}>
<path d="M18 9.5V6c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-3.5l4 4v-13l-4 4zm-5 6V13H7v2.5L3.5 12 7 8.5V11h6V8.5l3.5 3.5-3.5... |
src/client/SubmitLogAnalytics/components/llsubmit4/AnalyzerResult/components/chart/AnalyticsChart.js | perillaroc/nwpc-operation-system-analytics-tool | import React, { Component } from 'react';
import PropTypes from 'prop-types'
import { Row, Col } from 'antd'
import LineChart from './LineChart'
import HeatMapChart from './HeatMapChart'
let chart_placeholder_url = require('./assert/chart_placeholder.png');
export default class AnalyticsChart extends Component{
... |
examples/js/sort/sort-table.js | rolandsusans/react-bootstrap-table | /* 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,
... |
source/client/index.js | nRewik/react-railgun | import React from 'react'
import ReactDOM from 'react-dom'
import { browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import App from 'shared/components/app'
import configureStore from 'shared/configure-store'
// Add the reducer to your store on the `routing` key
const ini... |
app/main.js | nyc-bobolinks-2016/TemoApp | 'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Navigator
} from 'react-native';
import Temo from './components/temo';
import Contacts from './components/contacts';
import Welcome from './components/welcome';
import Conversations from './components/conve... |
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js | sfshine/actor-platform | import React from 'react';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import CreateGroupStore from 'stores/CreateGroupStore';
import CreateGroupForm from './create-group/Form.react';
import Modal from 'react-modal';
import { KeyCodes } from 'constants/ActorAppConstants';
const appEl... |
src/components/Common/List/Components/Authors/Views/Mobile/index.js | LifeSourceUA/lifesource.ua | import React from 'react';
import PropTypes from 'prop-types';
import Styles from './Styles/main.scss';
import Sort from 'components/Assets/SortBy';
import Palette from 'theme/Palette';
import BP from 'lib/breakpoints';
function Mobile(props) {
const { mediaType } = props;
const description = BP.isPhoneLan... |
demo/src/components/App/components/Example2/Example2.js | moroshko/react-autowhatever | import theme from '../theme.less';
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { updateInputValue } from '../../redux';
import Autowhatever from 'Autowhatever';
import SourceCodeLink from 'SourceCodeLink/SourceCodeLink';
const exampleId = '2';
const fil... |
src/components/GithubButton/GithubButton.js | bertho-zero/react-redux-universal-hot-example | import React from 'react';
import PropTypes from 'prop-types';
const GithubButton = props => {
const {
user, repo, type, width, height, count, large
} = props;
let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`;
if (count) src += '&count=true';
if (large) src += '&size=... |
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/MediaRight.js | JamieMason/npm-cache-benchmark | 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/list.js | stuartquin/bullets | import React from 'react';
import {connect} from 'react-redux';
import {BulletItem} from './bullet-item';
import {BulletInput} from './bullet-input';
const style = {
fontFamily: 'Verdana, Geneva, sans-serif'
};
class List extends React.Component {
constructor(props) {
super(props);
}
render() {
const ... |
src/static/containers/Domain/index.js | CRUDNS/CRUDNS | import React from 'react';
import t from 'tcomb-form';
import { push } from 'react-router-redux';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as actionCreators from '../../actions/domain';
const Form = t.form.Form;
const AddDomain =... |
src/Voting/Question/Response.js | cityofsurrey/polltal-app | import React from 'react'
import PropTypes from 'prop-types'
import Radium from 'radium'
import images from 'utils/images'
import theme from 'theme'
const styles = {
root: {
'@media (min-width: 1150px)': {
display: 'flex',
justifyContent: 'space-between',
},
},
responses: {
display: 'fl... |
frontend/js/components/Frame.js | ttavenner/okcandidate-platform | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Header from './ecosystems/Header';
import Sidebar from './ecosystems/Sidebar';
import Tagline from './molecules/Tagline';
import { connect } from 'react-redux';
class Frame extends Component {
render() {
return (
... |
docs/app/Examples/views/Feed/Types/FeedExampleShorthand.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Feed } from 'semantic-ui-react'
const events = [
{
date: '1 Hour Ago',
image: 'http://semantic-ui.com/images/avatar/small/elliot.jpg',
meta: '4 Likes',
summary: 'Elliot Fu added you as a friend',
},
{
date: '4 days ago',
image: 'http://semantic-ui.com/im... |
template/src/client.js | GENGSHUANGs/hipack | /**
* 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-core/polyfill';
import React from 'react';
i... |
packages/material-ui-icons/src/TabletAndroid.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let TabletAndroid = props =>
<SvgIcon {...props}>
<path d="M18 0H6C4.34 0 3 1.34 3 3v18c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V3c0-1.66-1.34-3-3-3zm-4 22h-4v-1h4v1zm5.25-3H4.75V3h14.5v16z" />
</SvgIcon>;
T... |
assets/jqwidgets/demos/react/app/formattedinput/validation/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxFormattedInput from '../../../jqwidgets-react/react_jqxformattedinput.js';
class App extends React.Component {
render() {
return (
<JqxFormattedInput
width={250} height={25} radix={'decimal'}
... |
src/components/theme-legacy/signature-add-form.js | MoveOnOrg/mop-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router'
import CountrySelect from './form/country-select'
import StateOrRegionInput from './form/state-or-region-input'
import ZipOrPostalInput from './form/zip-or-postal-input'
const SignatureAddForm = ({
submit,
petitionBy,... |
src/app/components/Footer.js | UrgBenri/UrgBenriWeb | import React from 'react';
import PropTypes from 'prop-types';
import {Toolbar, ToolbarGroup, ToolbarSeparator, ToolbarTitle} from 'material-ui/Toolbar';
const Footer = ({style}) => (
<footer style={style}>
<Toolbar>
<ToolbarGroup>
<ToolbarTitle text="Version 1.0.0" />
... |
docs/client/index.js | koaninc/draft-js-plugins | import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory } from 'react-router';
// Import your routes so that you can pass them to the <Router /> component
// eslint-disable-next-line import/no-named-as-default
import routes from './routes';
render((
<Router routes={routes} his... |
apps/marketplace/components/Brief/BriefSpecialistResponseSubmitted2.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import format from 'date-fns/format'
import Feedback from 'marketplace/components/Feedback/Feedback'
import DocumentTitle from 'react-document-title'
import PropTypes from 'prop-types'
import AUpageAlert from '@gov.au/page-alerts/lib/js/react.js'
import BriefResponseSubmittedSummary2 from './... |
stories/TaggedInput.js | thecodingwhale/conduit-clone | import React from 'react';
import { storiesOf } from '@storybook/react';
import TaggedInput from '../app/components/TaggedInput';
import { Wrapper } from './utilities/styling';
storiesOf('TaggedInput', module)
.add('default', () => (
<Wrapper>
<TaggedInput />
</Wrapper>
))
.add('with initialized va... |
docs/src/HomePage.js | kwnccc/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageFooter from './PageFooter';
import Grid from '../../src/Grid';
import Alert from '../../src/Alert';
import Glyphicon from '../../src/Glyphicon';
import Label from '../../src/Label';
export default class HomePage extends React.Component{
render()... |
src/components/meetings/questions/dialog/QuestionItem.js | VGraupera/1on1tracker | import React, { Component } from 'react';
import { ListItem } from 'material-ui/List';
import IconButton from 'material-ui/IconButton';
import ActionDelete from 'material-ui/svg-icons/action/delete';
import { red500, red200 } from 'material-ui/styles/colors';
import PropTypes from 'prop-types';
const propTypes = {
q... |
lavalab/html/node_modules/react-bootstrap/es/PaginationButton.js | LavaLabUSC/usclavalab.org | 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/scenes/home/chapterLeader/chapterLeader.js | OperationCode/operationcode_frontend | import React from 'react';
import Section from 'shared/components/section/section';
const chapterLeaders = () => (
<div>
<Section title="Chapter Leaders" theme="white">
<div>
<p>
Operation Code is looking for volunteer Chapter Leaders to build local communities
nationwide! Tell ... |
src/components/common/Header.js | dougsleite/talk2go | import React from 'react';
import { Text, View } from 'react-native';
const Header = (props) => {
const { textStyle, viewStyle } = styles;
return (
<View style={viewStyle}>
<Text style={textStyle}>{props.headerText}</Text>
</View>
);
};
const styles = {
viewStyle: {
backgroundColor: '#F8F8F8',
justify... |
src/skill.js | ManchunDog/ManchunDog.github.io | import React, { Component } from 'react';
var Skill = React.createClass({
render: function () {
return (
<div className="body center non-copy cursdefault">
<div className="row">
<div className="textint">
<div className="warn txtskill">... |
src/svg-icons/image/brightness-1.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness1 = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="10"/>
</SvgIcon>
);
ImageBrightness1 = pure(ImageBrightness1);
ImageBrightness1.displayName = 'ImageBrightness1';
ImageBrightnes... |
es/components/style/delete-button.js | dearkaran/react-planner | 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 = {... |
admin/client/components/ListSort.js | kumo/keystone | import { FormNote } from 'elemental';
import classNames from 'classnames';
import React from 'react';
import Popout from './Popout';
import PopoutList from './PopoutList';
import Transition from 'react-addons-css-transition-group';
import vkey from 'vkey';
import CurrentListStore from '../stores/CurrentListStore';
va... |
front/src/scenes/UserProfile/UserProfileScene.js | dherault/Aquest | import React, { Component } from 'react';
import { createFragmentContainer, graphql } from 'react-relay';
import StoryCreationForm from './components/StoryCreationForm';
import StoriesList from './components/StoriesList';
import Layout from '../../components/Layout';
import UserShowcase from '../../components/UserSho... |
app/javascript/flavours/glitch/components/attachment_list.js | vahnj/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
const filename = url => url.split('/').pop().split('#')[0].split('?')[0];
export default class AttachmentList extends ImmutablePureComponent {
static propTypes... |
src/CircleProgress.js | Lobos/react-ui | import React from 'react'
import classnames from 'classnames'
import PropTypes from './utils/proptypes'
import _styles from './styles/_circle-progress.scss'
function CircleProgress ({ children, className, size, style, width, background, color, value, max }) {
const props = {
cx: 50,
cy: 50,
r: 50 - width... |
fields/components/columns/IdColumn.js | jacargentina/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var IdColumn = React.createClass({
displayName: 'IdColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
list: React.PropTypes.obje... |
front/app/js/components/controls/Button.js | nudoru/React-Starter-3 | import React from 'react';
import { css } from 'emotion';
import {PropTypes} from 'prop-types';
import {darken} from 'polished';
import { omit, joinClasses } from '../../utils/componentUtils';
import {
withStyles,
createClassNameFromProps,
styleComponentPropTypes
} from './common/StyleManager';
import { shadows, ... |
src/encoded/static/components/navigation.js | ENCODE-DCC/encoded | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import { svgIcon } from '../libs/svg-icons';
import { Navbar, Nav, NavItem } from '../libs/ui/navbar';
import { DropdownMenu, DropdownMenuSep } from '../libs/ui/dropdown-menu';
import { CartMenu } from './cart';
import { isProduc... |
src/ContentBlocks/BlockImageParagraph/BlockImageParagraph.js | grommet/grommet-cms-content-blocks | import PropTypes from 'prop-types';
import React from 'react';
import Box from 'grommet/components/Box';
import Heading from 'grommet/components/Heading';
import Image from 'grommet/components/Image';
import Markdown from 'grommet/components/Markdown';
import Section from 'grommet/components/Section';
// These are sep... |
src/router/Logout.js | change-soft8/cs-project | import React from 'react'
const Logout = React.createClass({
render() {
return <p>You are now logged out</p>
}
})
module.exports = Logout
|
src/components/Main.js | weijiapro90/2_gallery_react | require('normalize.css/normalize.css');
require('styles/App.css');
import React from 'react';
let yeomanImage = require('../images/yeoman.png');
class AppComponent extends React.Component {
render() {
return (
<div className="index">
<img src={yeomanImage} alt="Yeoman Generator" />
<div c... |
src/components/App.js | chrisfisher/graph-editor | // @flow
import React from 'react';
import GraphControls from './GraphControls';
import GraphScene from './GraphScene';
const App = () => (
<div>
<GraphControls />
<GraphScene />
</div>
);
export default App;
|
app/javascript/flavours/glitch/features/ui/components/boost_modal.js | glitch-soc/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from 'flavours/glitch/components/button';
import StatusContent from '... |
app/components/HelpView/HelpIcon.js | trevornelson/wld-frontend | import React from 'react';
export class HelpIcon extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<span>
<i className="fa fa-info-circle" />
<span>Help</span>
</span>
);
}
}
export default HelpIcon;
|
fields/types/number/NumberField.js | benkroeger/keystone | import React from 'react';
import Field from '../Field';
import { FormInput } from '../../../admin/client/App/elemental';
module.exports = Field.create({
displayName: 'NumberField',
statics: {
type: 'Number',
},
valueChanged (event) {
var newValue = event.target.value;
if (/^-?\d*\.?\d*$/.test(newValue)) {
... |
client/src/containers/DefaultLayout/DefaultLayout.js | dmod/fdcallstats.com | import React, { Component } from 'react';
import { Redirect, Route, Switch } from 'react-router-dom';
import { Container } from 'reactstrap';
import {
AppAside,
AppBreadcrumb,
AppFooter,
AppHeader,
AppSidebar,
AppSidebarFooter,
AppSidebarForm,
AppSidebarHeader,
AppSidebarMinimizer,
AppSidebarNav,
}... |
Rosa_Madeira/Cliente/src/components/common/ButtonLoginPage.js | victorditadi/IQApp | import React from 'react';
import { Text, TouchableOpacity, Dimensions } from 'react-native';
import { Button } from 'native-base';
var width = Dimensions.get('window').width;
var height = Dimensions.get('window').height;
const ButtonHome = ({ onPress, children, color}) => {
const styles = {
buttonStyle: {
... |
src/view/components/Buttons/index.js | airtoxin/AnyScript | import React from 'react';
import { Button } from 're-bulma';
import styles from './index.css';
import common from '../common.css';
export default ({ onAddCodeScript, onAddUrlScript }) => (
<div className={`${common.flexRow}`}>
<Button
className={`${styles.button} ${common.box}`}
color="isPrimary"
... |
frontend/js/token.js | daniel-bytes/rps | 'use strict';
'use strict';
import React from 'react'
export default class Token extends React.Component {
getTokenText(type) {
switch(type) {
case 0: return "X"; // other player
case 1: return "F"; // flag
case 2: return "R"; // rock
case 3: return "P"; //... |
src/client/components/kiosk/Setup/KioskSetup.component.js | DBCDK/content-first | import React from 'react';
import T from '../../base/T';
import Button from '../../base/Button';
import Toolbar from '../../base/Toolbar';
import Banner from '../../base/Banner';
import Input from '../../base/Input';
import Text from '../../base/Text';
import Heading from '../../base/Heading';
import Kiosk from '../../... |
components/Home.js | jordancappy/jorder | import React from 'react';
import HomePage from './HomePage';
import FormList from './FormList';
class Home extends React.Component {
constructor(){
super();
this.state = {
isLoggedIn : false
};
}
componentDidMount(){
$.get('/api/users',(data)=>{
this.setState({
isLoggedIn: !!... |
packages/material-ui-icons/legacy/SignalWifi2BarLockRounded.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M15.5 14.5c0-2.8 2.2-5 5-5 .36 0 .71.04 1.05.11L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l10.08 12.56c.8 1 2.32 1 3.12 0l1.94-2.42V14.5z" /><path d="M15.5 1... |
components/Map/Control/Controls.story.js | rdjpalmer/bloom | import React from 'react';
import { storiesOf, action } from '@storybook/react';
import { withKnobs, boolean } from '@storybook/addon-knobs';
import ControlIcon from './ControlIcon';
import Control from './Control';
const stories = storiesOf('Map control', module);
stories.addDecorator(withKnobs);
stories.add('Contro... |
src/client/js/components/Gallery.js | larbreapages/bookbuilder | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import classNames from 'classnames';
import $ from 'expose-loader?$!expose-loader?jQuery!jquery'; // eslint-disable-line
import 'jquery-zoom/jquery.zoom.min';
import { chooseBookBinding } from '.... |
app/containers/App.js | leesander1/hearmenow-electron | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import NavBar from '../components/NavBar/NavBar';
import Footer from '../components/Footer/Footer';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import injectTapEventPlugin from 'rea... |
src/index.js | mikecanann/roguelike_dungeon_crawler | import React from 'react';
import ReactDOM from 'react-dom';
import Dungeon from './Dungeon';
import { createStore } from 'redux';
import { Provider, connect } from 'react-redux';
// main.css is generated from main.scss
import './main.css';
// Action
const toggleDarknessAction = { type: 'toggleDarkness' };
// Acti... |
hw8/frontend/src/components/profile/profileForm.js | yusong-shen/comp531-web-development | /**
* Created by yusong on 10/20/16.
*/
import React from 'react'
import { connect } from 'react-redux'
import { Field, reduxForm } from 'redux-form'
import * as Actions from '../../actions/profileActions'
const validate = values => {
const errors = {}
// if none empty and has correct format
if (values.e... |
src/components/ui/FormInput.js | jeanlescure/detox-react-native-demo | /**
* Text Input
*
<FormInput></FormInput>
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { FormInput } from 'react-native-elements';
// Consts and Libs
import { AppColors, AppFonts } ... |
app/javascript/mastodon/features/list_timeline/index.js | pointlessone/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnBackButton from '../../co... |
src/ColorPicker/color-picker-hue.js | skyiea/wix-style-react | import React from 'react';
import {func, object} from 'prop-types';
import color from 'color';
import clamp from 'lodash/clamp';
import WixComponent from '../BaseComponents/WixComponent';
import {getBoundingRect} from './utils';
import css from './color-picker-hue.scss';
export default class ColorPickerHue extends W... |
src/scenes/home/requestModal/requestModal.js | tskuse/operationcode_frontend | import React, { Component } from 'react';
import dateFormat from 'dateformat';
import PropTypes from 'prop-types';
import Form from 'shared/components/form/form';
import REQUEST_STATUSES from 'shared/constants/status';
import FormButton from 'shared/components/form/formButton/formButton';
import Modal from 'shared/comp... |
src/index.js | bpetetot/advanced-react-deck | /* eslint-disable */
import React from 'react'
import { render } from 'react-dom'
import Presentation from './presentation'
render(<Presentation/>, document.getElementById('root'));
|
node_modules/react-bootstrap/es/PaginationButton.js | C0deSamurai/muzjiks | 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 ... |
app/jsx/conditional_release_stats/app.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
docs/src/app/components/pages/components/List/ExamplePhone.js | matthewoates/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import Divider from 'material-ui/Divider';
import CommunicationCall from 'material-ui/svg-icons/communication/call';
import CommunicationChatBubble from 'material-ui/svg-icons/communicatio... |
src/svg-icons/communication/mail-outline.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationMailOutline = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"/>
</SvgIcon>
)... |
app/components/App.js | klikstermkd/book-search | import React from 'react';
import Search from './Search';
import Books from './Books';
const App = () => (
<div>
<Search />
<Books />
</div>
);
export default App; |
packages/core/src/Avatar.js | iCHEF/gypcrete | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import './styles/Avatar.scss';
import icBEM from './utils/icBEM';
import prefixClass from './utils/prefixClass';
const COMPONENT_NAME = prefixClass('avatar');
const ROOT_BEM = icBEM(COMPONENT_NAME);
const SQUARE = 's... |
examples/src/components/UsersField.js | vomchik/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... |
ui/src/js/common/components/FileChooser.js | Dica-Developer/weplantaforest | import counterpart from 'counterpart';
import React, { Component } from 'react';
import IconButton from './IconButton';
export default class FileChooser extends Component {
constructor() {
super();
this.state = {
file: null,
imageName: ''
};
}
chooseFile() {
this.refs.fileChooser.cli... |
src/components/common/orders/OrderDetails.js | ESTEBANMURUZABAL/my-ecommerce-template | /**
* Imports
*/
import React from 'react';
import moment from 'moment';
import {FormattedMessage, FormattedNumber} from 'react-intl';
import {Link} from 'react-router';
// Flux
import IntlStore from '../../../stores/Application/IntlStore';
// Required components
import AddressPreview from '../forms/AddressPreview'... |
nodejs/static/javascripts/admin/containers/App.js | shen100/wemall | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Layout } from "antd";
import HeaderNavbar from '../components/HeaderNavbar';
import Sidebar from '../components/Sidebar';
import '../../../styles/admin/app.css';
const { Content, Sider } = ... |
src/containers/Asians/TabControls/BreakRounds/CreateBreakRooms/3_AllocateTeams/PositionSelection/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import Paper from 'material-ui/Paper'
import List, {
ListItem,
ListItemText
} from 'material-ui/List'
import ListSubheader from 'material-ui/List/ListSubheader'
import Checkbox from 'material-ui/Checkbox'
import _ from 'lodash'
export default connec... |
src/routes.js | ganhammar/pivotaltracker-dashboard | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import AuthenticationMiddleware from './components/Middleware/Authentication';
import TrackerStoreMiddleware from './components/Middleware/TrackerStoreMiddleware';
import Layout from './components/Layout';
import Home from './views/Home';
i... |
packages/editor/src/components/Controls/Emoji/EmojiLayout.js | boldr/boldr | /* eslint-disable react/no-array-index-key */
/* @flow */
import React from 'react';
import type { Node } from 'react';
import cn from 'classnames';
import { Smile } from '../../Icons';
import { stopPropagation } from '../../../utils/common';
import type { EmojiConfig } from '../../../core/config';
import Option from ... |
frontend/src/Components/Form/TagInputInput.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { kinds } from 'Helpers/Props';
import tagShape from 'Helpers/Props/Shapes/tagShape';
import styles from './TagInputInput.css';
class TagInputInput extends Component {
onMouseDown = (event) => {
event.preventDefault();
con... |
src/scenes/home/about/whatWeDo/whatWeDo.js | NestorSegura/operationcode_frontend | import React from 'react';
import Section from 'shared/components/section/section';
import ImageCard from 'shared/components/imageCard/imageCard';
import image1 from 'images/General-Group-Coffee.jpg';
import image2 from 'images/rhs2017_photo.jpg';
import image3 from 'images/General-Couple-Computer.jpg';
import image4 f... |
app/components/NavBar.js | GongDexing/work-board | /*jshint esversion:6*/
import '../less/NavBar.less';
import React, { Component } from 'react';
import { Row, Col, Button, Icon, Menu, Dropdown } from 'antd';
import ModalGroup from './ModalGroup';
import { logout, authCookie } from '../actions/auth';
import { displayModal } from '../actions/common';
import { fetchProje... |
server/sonar-web/src/main/js/apps/global-permissions/permission-groups.js | abbeyj/sonarqube | import React from 'react';
import PermissionsUsersGroupsMixin from './permission-users-groups-mixin';
import GroupsView from './groups-view';
export default React.createClass({
mixins: [PermissionsUsersGroupsMixin],
renderUpdateLink() {
return (
<a onClick={this.updateGroups}
className="ico... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.