path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
actor-apps/app-web/src/app/components/sidebar/RecentSectionItem.react.js | vanloswang/actor-platform | import React from 'react';
import classNames from 'classnames';
import DialogActionCreators from 'actions/DialogActionCreators';
import DialogStore from 'stores/DialogStore';
import AvatarItem from 'components/common/AvatarItem.react';
class RecentSectionItem extends React.Component {
static propTypes = {
di... |
assets/jqwidgets/demos/react/app/formattedinput/fluidsize/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={'30%'} height={25} radix={'binary'}
... |
scorebord/src/index.js | FrankSchutte/Kwizzert | import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {createStore, applyMiddleware, compose} from 'redux';
import thunk from 'redux-thunk';
import reducers from './reducers';
import MainContainer from './containers/MainContainer';
import kwizzertWebSocket from './kw... |
src/images/IconPalette.js | benjaminmodayil/modayilme | import React from 'react';
export default function IconPalette(props) {
return (
<svg xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" height="18.933" width="20.786" {...props}>
<defs>
<path id="a" fillRule="evenodd" d="M16.034 5.666c-3.342-1.586-6.2 1.643-7.542 0-.514-.... |
src/event_table/Table.js | loomismeister/projio | import React from 'react';
import AltContainer from 'alt-container';
import TableStore from './TableStore';
import TableActions from './TableActions';
var win = require('electron').remote;
var Cell = React.createClass({
render() {
var className = "";
if(this.props.cellData.isSelected) {
className = ... |
src/svg-icons/image/palette.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePalette = (props) => (
<SvgIcon {...props}>
<path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.4... |
src/index.js | lxgreen/undo-tree | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import '../css/index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/scripts/student-profile/js/app/components/NavLink.js | IronCountySchoolDistrict/student-profile | import React from 'react';
import { Route } from 'react-router';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
const NavLink = ({ label, to, activeOnlyWhenExact, activeClassName }) => (
<Route path={to} exact={activeOnlyWhenExact} children={({match}) => (
<li className={(match ? ac... |
src/templates/tag-single.js | akabekobeko/akabeko.me | import React from 'react'
import PropTypes from 'prop-types'
import { Helmet } from 'react-helmet'
import Link from 'gatsby-link'
import { graphql } from 'gatsby'
import Header from '../components/header'
import Footer from '../components/footer'
const TagSingle = ({ data, pageContext }) => {
if (!pageContext.posts)... |
docs/app/Examples/views/Comment/Content/CommentExampleAvatar.js | koenvg/Semantic-UI-React | import React from 'react'
import { Comment } from 'semantic-ui-react'
const CommentExampleAvatar = () => (
<Comment.Group>
<Comment>
<Comment.Avatar src='http://semantic-ui.com/images/avatar/small/elliot.jpg' />
<Comment.Content>
<Comment.Author as='a'>Elliot Fu</Comment.Author>
</Comme... |
app/components/ProfileChart.js | react-rpm/react-rpm | import React from 'react';
import PropTypes from 'prop-types';
import styles from './../assets/profilechart.css';
import viewEnterTransitions from './../assets/viewEnterTransitions.css';
import ReactTransition from 'react-transition-group/CSSTransitionGroup';
import {
BarChart,
Bar,
XAxis,
YAxis,
CartesianGri... |
fields/types/location/LocationField.js | alobodig/keystone | import _ from 'lodash';
import React from 'react';
import Field from '../Field';
import CollapsedFieldLabel from '../../components/CollapsedFieldLabel';
import NestedFormField from '../../components/NestedFormField';
import {
FormField,
FormInput,
FormNote,
Grid,
LabelledControl,
} from '../../../admin/client/App... |
src/src/pages/Dashboard/SalesChart.js | chaitanya1375/Myprojects | import React from 'react';
import ChartistGraph from 'react-chartist';
import Chartist from 'chartist';
let dataSales = {
labels: ['9:00AM', '12:00AM', '3:00PM', '6:00PM', '9:00PM', '12:00PM', '3:00AM', '6:00AM'],
series: [
[287, 385, 490, 492, 554, 586, 698, 695, 752, 788, 846, 944],
[67, 152, 143, 240, 2... |
packages/icons/src/md/action/Tab.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdTab(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M42 6c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H6c-2.21 0-4-1.79-4-4V10c0-2.21 1.79-4 4-4h36zm0 32V18H26v-8H6v28h36z" />
</IconBase>
);
}
export defa... |
src/js/components/Nav/Nav.js | Dwardmr/Hearthpedia | import React from 'react';
import AppBar from 'material-ui/AppBar';
import styles from './style.css';
export default class Nav extends React.Component{
render(){
const { pathname } = this.props;
const customStyle ={
navBar: { backgroundColor: "#8BC34A" }
}
if (pathname === '/'){
customStyle.navBar = {
... |
wrappers/html.js | lukevance/personal_site | import React from 'react'
module.exports = React.createClass({
propTypes () {
return {
router: React.PropTypes.object,
}
},
render () {
const post = this.props.route.page.data
return (
<div className="markdown">
<h1 dangerouslySetInnerHTML={{ __html: post.title }} />
<... |
components/common/link/index.js | marrus-sh/mastodon-go | // <CommonLink>
// ============
// An exceedingly simple component for rendering links. You should
// use the `onClick` prop to pass routing functions to links which
// point to another area of the frontend.
// * * * * * * * //
// Imports
// -------
// Package imports.
import classNames from 'classnames'... |
src/index.js | mszalbach/bns-profit-calc | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
modules/dreamview/frontend/src/components/PNCMonitor/PlanningMonitor.js | ApolloAuto/apollo | import React from 'react';
import { inject, observer } from 'mobx-react';
import _ from 'lodash';
import SETTING from 'store/config/PlanningGraph.yml';
import ScatterGraph, { generateScatterGraph } from 'components/PNCMonitor/ScatterGraph';
import PlanningScenarioTable from 'components/PNCMonitor/PlanningScenarioTable... |
components/partials/Modal.js | freyconner24/Quizzly | "use strict";
import React from 'react'
import AddCourseBody from '../partials/AddCourseBody.js'
import AddQuizBody from '../partials/AddQuizBody.js'
import AddQuestionBody from '../partials/AddQuestionBody.js'
import AddStudentsBody from '../partials/AddStudentsBody.js'
export default class Modal extends React.Compo... |
packages/@lyra/components/src/formfields/DefaultFormField.js | VegaPublish/vega-studio | /* eslint-disable complexity */
import PropTypes from 'prop-types'
import React from 'react'
import styles from 'part:@lyra/components/formfields/default-style'
import DefaultLabel from 'part:@lyra/components/labels/default'
import ValidationStatus from 'part:@lyra/components/validation/status'
import ValidationList f... |
application/components/groups/Groups.js | buildreactnative/assemblies-tutorial | import Icon from 'react-native-vector-icons/MaterialIcons';
import NavigationBar from 'react-native-navbar';
import React, { Component } from 'react';
import { View, Text, TouchableOpacity, Image, ScrollView } from 'react-native';
import Colors from '../../styles/colors';
import Loading from '../shared/Loading';
impor... |
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | tmbtech/react-router | import React from 'react';
import { Link } from 'react-router';
export default class AnnouncementsSidebar extends React.Component {
static loadProps (params, cb) {
console.log('AnnouncementsSidebar', 'loadProps');
cb(null, {
announcements: COURSES[params.courseId].announcements
});
}
render (... |
src/containers/AnimalPage.js | KingCountySAR/database-frontend | import React from 'react';
import AnimalPage from '../components/AnimalPage';
import stubMissions from '../api/stubMissions.json';
const bessie = {
name: 'Bessie',
type: 'Cow',
status: 'Active',
owner: {
name: 'Jason Curtis',
status: 'Active',
}
};
const prepareMissionData = mis... |
src/scenes/Layout/components/Representation/Representation.js | czonios/schedule-maker-app | import React from 'react';
import './representation.css';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { toggleGridOrCardDisplay, displayEventModal, deleteEvent } from '../../../.././data/actions';
import Month from './components/Month/Mon... |
src/svg-icons/image/edit.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageEdit = (props) => (
<SvgIcon {...props}>
<path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/>
... |
stories/CardUser.stories.js | nekuno/client | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import CardUser from '../src/js/components/OtherUser/CardUser/CardUser.js';
storiesOf('CardUser', module)
.add('Small card user', () => (
<CardUser onClickHandler={action('clicked')}
... |
packages/icons/src/md/hardware/KeyboardReturn.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdKeyboardReturn(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<polygon points="39 14 39 22 12.66 22 19.83 14.83 17 12 5 24 17 36 19.83 33.17 12.66 26 43 26 43 14" />
</IconBase>
);
}
export default MdKeyboa... |
src/app/components/Counter.js | belfz/react-lion | import React from 'react';
import CounterActions from '../actions/CounterActions';
class Counter extends React.Component {
constructor (props) {
super(props);
this.props = props;
this.increment = this.increment.bind(this);
}
increment () {
CounterActions.incrementBy(1);
}
render () {
return (
<di... |
frontend/js/components/environments/Home.js | wbprice/okcandidate-platform | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Card from './../atoms/Card';
class Home extends Component {
constructor(props) {
super(props);
}
render() {
return (
<section className="home">
... |
app/NewsHeader.js | theJian/hn-FrontPage | import React from 'react';
import './NewsHeader.css';
import imageLogo from './y18.gif';
export default class NewsHeader extends React.Component {
getLogin() {
return (
<div className="newsHeader-login">
<a className="newsHeader-textLink" href="https://news.ycombinator.com/login?goto=news">logi... |
docs/src/app/components/pages/components/AutoComplete/ExampleSimple.js | andrejunges/material-ui | import React from 'react';
import AutoComplete from 'material-ui/AutoComplete';
export default class AutoCompleteExampleSimple extends React.Component {
constructor(props) {
super(props);
this.state = {
dataSource: [],
};
}
handleUpdateInput = (value) => {
this.setState({
dataSourc... |
app/views/DietaryPreferencesView.js | hippothesis/Recipezy | /*
* Copyright 2017-present, Hippothesis, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
import React, { Component } from 'react';
import { Image } from 'react-native';
import {
Co... |
node_modules/react-bootstrap/es/BreadcrumbItem.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 ... |
main.js | eshalkowski/GithubJobs | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import 'babel-polyfill';
im... |
src/components/common/svg-icons/action/donut-large.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDonutLarge = (props) => (
<SvgIcon {...props}>
<path d="M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18.... |
packages/material-ui-icons/src/ViewWeek.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let ViewWeek = props =>
<SvgIcon {...props}>
<path d="M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-... |
src/Grid/components/Grid.js | jmcriffey/react-ui | import React from 'react';
import Header from './Header';
import Row from './Row';
import {getClassName, noop} from '../../utils';
class Grid extends React.Component {
constructor(...args) {
super(...args);
this.state = {
activeCell: [-1, -1],
activeHeader: -1,
... |
src/svg-icons/action/assignment-late.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentLate = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-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-6 15h-2v-2h2v2zm0... |
src/components/RSequipmentThing/EquipmentSlotBox.js | Dynatos/personal-website | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import EquipmentItems from "./EquipmentItems";
// This function returns an array from 0 to whatever value is given as the argument
function equipmentItemBoxNumberArrayMaker(value) {
let numberOfEquipmentBoxesToMap = [];
for (let i = 0; i... |
docs/src/app/components/pages/components/AppBar/Page.js | ArcanisCz/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import appBarReadmeText from './README';
import AppBarExampleIcon from './ExampleI... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/LifeCycle/TransitionStateButton.js | abimarank/carbon-apimgt | import React from 'react'
import {Radio} from 'antd'
const Button = Radio.Button;
const TransitionStateButton = (props) => {
return (
<Button value={props.state.targetState}>{props.state.event}</Button>
);
};
export default TransitionStateButton |
app/components/Upload.js | tidepool-org/chrome-uploader | /*
* == BSD2 LICENSE ==
* Copyright (c) 2015-2016, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program is ... |
app/javascript/mastodon/components/hashtag.js | pso2club/mastodon | import React from 'react';
import { Sparklines, SparklinesCurve } from 'react-sparklines';
import { FormattedMessage } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from './permalink';
import { shortNumberFormat } from '../utils/numbers';
const Hashtag = ({ hashtag }) ... |
src/svg-icons/hardware/router.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareRouter = (props) => (
<SvgIcon {...props}>
<path d="M20.2 5.9l.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7zm-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6... |
js/components/login/index.js | acbde45/bookRead |
import React, { Component } from 'react';
import { Image } from 'react-native';
import { connect } from 'react-redux';
import { Container, Content, Item, Input, Button, Icon, View, Text, Toast } from 'native-base';
import { Actions } from 'react-native-router-flux';
import { userLogin, userRegister, restUser } from '... |
src/components/video_detail.js | nbreath/react-practice | import React from 'react';
const VideoDetail = ({video}) => {
if (!video) {
return <div>Loading...</div>;
}
const url = `https://www.youtube.com/embed/${video.id.videoId}`;
return (
<div className='video-detail col-md-8'>
<div className='embed-responsive embed-responsive-16by9'>
<iframe... |
src/index.js | ZhenxingXiao/zls-front-end | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
//import App from './components/Main';
import Nav from './components/navigator/ntop1';
// Render the main component into the dom
//ReactDOM.render(<App />, document.getElementById('nav'));
ReactDOM.render(<Nav/>, document.g... |
app/jsx/shared/DatetimeDisplay.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... |
app/components/Geschaeft/AreaZuletztMutiert.js | barbalex/kapla3 | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import { observer, inject } from 'mobx-react'
import compose from 'recompose/compose'
const Container = styled.div`
grid-area: areaZuletztMutiert;
background-color: rgba(239, 239, 239, 1);
display: grid;
grid-te... |
src/Spinner.js | tleunen/react-mdl | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import mdlUpgrade from './utils/mdlUpgrade';
const propTypes = {
className: PropTypes.string,
singleColor: PropTypes.bool
};
// eslint-disable-next-line react/prefer-stateless-function
class Spinner extends Rea... |
src/components/Header/Header.js | chen844033231/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../../utils/Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header {
render() {
... |
src/icons/DoneIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class DoneIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M18 32.34L9.66 24l-2.83 2.83L18 38l24-24-2.83-2.83z"/></svg>;}
}; |
app/components/Dropdown/index.js | zweicoder/Showtime-Dashboard | import React from 'react';
import { SimpleSelect } from 'react-selectize';
export default class Dropdown extends React.Component {
render() {
const options = Object
.entries(this.props.filters)
// value is the apmt code, used for filtering
.map(([ value, label ]) => {
return { label, v... |
client/src/javascript/components/icons/Files.js | jfurrow/flood | import React from 'react';
import BaseIcon from './BaseIcon';
export default class Files extends BaseIcon {
render() {
return (
<svg className={`icon icon--files ${this.props.className}`} viewBox={this.getViewBox()}>
<path
className="icon--files__file icon--files__file--front"
... |
app/components/SecretPage.js | YuHuaiChen/meteor-react-redux-starter-kit | import React from 'react'
const SecretPage = () => {
return (
<div>
<h2> This is a secret page! Require login to view! </h2>
</div>
)
}
export default SecretPage
|
ui/src/components/modal/AddModal.js | yahoo/athenz | /*
* Copyright 2020 Verizon Media
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
src/redux/containers/app.js | builderscon/nanp | // @flow
import React from 'react'
import {
bindActionCreators,
} from 'redux'
import {
connect,
Provider,
} from 'react-redux'
import Navigator from '../../components/app'
import store from '../store'
import * as qrCodeReaderActionCreators from '../modules/qr-code-reader'
const mapStateToProps = ({ qrCodeRea... |
mdbreact/components/CarouselInner.js | ryanwashburne/react-skeleton | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
class CarouselInner extends Component {
constructor(props) {
super(props);
this.state = {
childrenCount: React.Children.count(this.props.children)
};
}
render() {
let {
... |
src/js/components/icons/base/Compare.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... |
packages/cf-component-icon/src/reactsvgs/Gear.js | jroyal/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
const Gear = ({ className, label }) => (
<svg
className={className}
aria-label={label}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
>
<path d="M15.12,6.381h-1.7a5.687,5.687,0,0,0-1.308-2.265l.851-1.474a7.293,7.293,0,0,0-2.... |
documents/react-course/src/chapter5/index.js | sharkspeed/dororis | import React from 'react'
import { render } from 'react-dom'
import Menu from './components/Menu' |
example/components/LoremParagraph.js | taxfix/native-navigation | import React from 'react';
import PropTypes from 'prop-types';
import {
Text,
StyleSheet,
} from 'react-native';
import murmurHash from 'murmur2js';
const propTypes = {
id: PropTypes.number.isRequired,
...Text.propTypes,
};
const contextTypes = {
nativeNavigationInstanceId: PropTypes.string,
};
const PARAG... |
src/svg-icons/places/free-breakfast.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesFreeBreakfast = (props) => (
<SvgIcon {...props}>
<path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM4 19h16v2H4z"/>
</SvgIcon>
);
PlacesFre... |
app/components/NavBar/index.js | bluce1017/betterthangoodell | /**
*
* NavBar
*
*/
import React from 'react';
import { Navbar, Nav, NavItem } from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
function NavBar() {
return (
<Navbar fluid>
<Nav>
<LinkContainer to="/">
<NavItem eventKey={1}>Home</NavItem>
</LinkC... |
ui/src/js/co2/Co2Calculator.js | Dica-Developer/weplantaforest | import Accounting from 'accounting';
import counterpart from 'counterpart';
import React, { Component } from 'react';
require('./co2Calculator.less');
export default class Co2Calculator extends Component {
constructor() {
super();
this.state = {
foodResult: 0,
foodMessage: counterpart.translate(... |
examples/redux/src/app.js | aksonov/react-native-router-flux | import React from 'react';
import { createStore, applyMiddleware, combineReducers } from 'redux';
import { Provider, connect } from 'react-redux';
import { Scene, Actions, Router } from 'react-native-router-flux';
import { reduxifyNavigator, createReactNavigationReduxMiddleware, createNavigationReducer } from 'react-na... |
CompositeUi/src/views/component/Advice.js | kreta/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import './../../scss/components/_advice.s... |
client/app/components/ContentEditor/index.js | bryanph/Geist | /**
*
* ContentEditor
*
*/
import React from 'react';
import PropTypes from 'prop-types'
import classNames from 'classnames'
import enhanceWithClickOutside from 'react-onclickoutside'
import { Map } from 'immutable';
import { Prompt } from 'react-router-dom'
import { EditorState, Entity, DefaultDraftBlockRenderMa... |
frontend/src/Settings/Tags/Tag.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Card from 'Components/Card';
import ConfirmModal from 'Components/Modal/ConfirmModal';
import { kinds } from 'Helpers/Props';
import TagDetailsModal from './Details/TagDetailsModal';
import styles from './Tag.css';
class Tag extends C... |
docs/src/app/components/pages/customization/StylesOverridingCssExample.js | IsenrichO/mui-with-arrows | import React from 'react';
import Checkbox from 'material-ui/Checkbox';
const StylesOverridingCssExample = () => (
<Checkbox
name="StylesOverridingCssExample"
label="Checked the mail"
className="styles-overriding-css-example"
/>
);
export default StylesOverridingCssExample;
|
src/Parser/UnsupportedSpec/CONFIG.js | enragednuke/WoWAnalyzer | import React from 'react';
import { Zerotorescue } from 'MAINTAINERS';
import SPEC_ANALYSIS_COMPLETENESS from 'common/SPEC_ANALYSIS_COMPLETENESS';
import CombatLogParser from './CombatLogParser';
import CHANGELOG from './CHANGELOG';
export default {
spec: { id: 0, className: 'Unsupported', specName: 'Spec' }, // S... |
src/svg-icons/action/theaters.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTheaters = (props) => (
<SvgIcon {...props}>
<path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/>
</SvgI... |
src/client.js | reggi/react-shopify-app | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel-core/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createHistory from 'history/lib/createBrowserHistory';
import createStore from './redux/create';
import ApiClient fr... |
components/src/styles/theme-decorator.js | vanHeemstraDesigns/CreationsEcosystemStatic | import React from 'react';
export default (customTheme) => {
return function(Component) {
return React.createClass({
childContextTypes: {
muiTheme: React.PropTypes.object,
},
getChildContext() {
return {
muiTheme: customTheme,
};
},
render() {
... |
src/svg-icons/file/create-new-folder.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCreateNewFolder = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"/>
</Svg... |
app/javascript/mastodon/features/ui/components/modal_root.js | verniy6462/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import TransitionMotion from 'react-motion/lib/TransitionMotion';
import spring from 'react-motion/lib/spring';
import BundleContainer from '../containers/bundle_container';
import BundleModalError from './bundle_modal_error';
import ModalLoading from './mo... |
src/index.js | FernandoZX/react_hoja_de_vida_tutorial | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root')); |
src/components/About/AboutEnabledModules.js | folio-org/stripes-core | import _ from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import { List } from '@folio/stripes-components';
class AboutEnabledModules extends React.Component {
static manifest = Object.freeze({
enabledModules: {
type: 'okapi',
path: '_/proxy/tenants/!{tenantid}/modules',
... |
client/modules/core/routes.js | MechJosh0/storybook-mdl-error | import React from 'react';
import {mount} from 'react-mounter';
import MainLayout from './components/main_layout';
import PostList from './containers/postlist';
import Post from './containers/post';
import NewPost from './containers/newpost';
export default function (injectDeps, {FlowRouter}) {
const MainLayoutCtx ... |
src/svg-icons/file/cloud.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloud = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z"/>... |
client/components/surveys/edit/ConfirmPageDeletion.js | AnatolyBelobrovik/itechartlabs | import React from 'react';
import PropTypes from 'prop-types';
import ConfirmModal from 'react-confirm-bootstrap';
const ConfirmPageDeletion = ({ id, onRemovePage }) => {
const onConfirm = () => {
onRemovePage();
};
return (
<ConfirmModal
onConfirm={onConfirm}
body={`Are you sure you want t... |
src/components/Login/Login.js | kdrabek/exchange_rates_frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { Field, reduxForm } from 'redux-form';
import {
Row, Col, FormControl, Button, ControlLabel, FormGroup, Form
} from 'react-bootstrap';
import * as userAc... |
docs/src/app/components/pages/components/SvgIcon/ExampleIcons.js | mtsandeep/material-ui | import React from 'react';
import ActionHome from 'material-ui/svg-icons/action/home';
import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff';
import FileCloudDownload from 'material-ui/svg-icons/file/cloud-download';
import HardwareVideogameAsset from 'material-ui/svg-icons/hardware/videogame-as... |
CompositeUi/src/views/form/OrganizationNew.js | kreta/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import React from 'react';
import {connec... |
javascript/containers/header-search.js | kdoran/moriana-react | import React from 'react'
import { connect } from 'react-redux'
import { getItems, searchItems, displayItemName } from 'store/items'
import { getLocations, searchLocations } from 'store/locations'
import displayLocation from 'components/display-location'
import {buildStockCardHref} from 'components/stockcard-link'
impo... |
lens-ui/app/components/CubeTreeComponent.js | archanah24/lens | /**
* 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 may not... |
examples/todos-with-undo/src/components/Footer.js | heyesther/redux | import React from 'react'
import FilterLink from '../containers/FilterLink'
const Footer = () => (
<p>
Show:
{" "}
<FilterLink filter="SHOW_ALL">
All
</FilterLink>
{", "}
<FilterLink filter="SHOW_ACTIVE">
Active
</FilterLink>
{", "}
<FilterLink filter="SHOW_COMPLETED">... |
assets/search-view/components/MessageView.js | janta-devs/nyumbani | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Actions from '../../DataStore/Actions';
//importint the components for the chat view
import BasicDetails from '../MessageViewComponent/BasicDetails';
import MessageComponent from '../Me... |
src/components/Notification.js | hannupekka/yabsa | // @flow
import styles from 'styles/components/Notification';
import React from 'react';
import { Map } from 'immutable';
import { pure } from 'recompose';
import type { Component } from 'recompose';
import CSSModules from 'react-css-modules';
type Props = {
data: Map<string, NotificationOptionsType>,
onDismiss: (... |
admin/client/components/List/ListFiltersAddForm.js | tony2cssc/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import CurrentListStore from '../../stores/CurrentListStore';
import filters from '../../filters';
import Popout from '../Popout';
var ListFiltersAddForm = React.createClass({
propTypes: {
field: React.PropTypes.object.isRequired,
maxHeight: React.PropT... |
src/components/RightCol.js | Alex-Just/gymlog | import React, { Component } from 'react';
import './RightCol.scss';
export default class RightCol extends Component {
render() {
return (
<div className="col-md-2">
<div>
<span styleName="component">
<b styleName="header">
<span className="glyphicon glyphicon-calendar"... |
src/svg-icons/device/screen-lock-rotation.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenLockRotation = (props) => (
<SvgIcon {...props}>
<path d="M23.25 12.77l-2.57-2.57-1.41 1.41 2.22 2.22-5.66 5.66L4.51 8.17l5.66-5.66 2.1 2.1 1.41-1.41L11.23.75c-.59-.59-1.54-.59-2.12 0L2.75 7.11c-.59... |
src/app/component/offer-table-cell/offer-table-cell.js | all3dp/printing-engine-client | import React from 'react'
import PropTypes from 'prop-types'
import buildClassName from '../../lib/class-names'
import propTypes from '../../prop-types'
const OfferTableCell = ({classNames, children, subline, major = false}) => (
<div className={buildClassName('OfferTableCell', {major, subline: !!subline}, classNam... |
src/client/main.js | codevlabs/hacker-menu | import React from 'react'
import StoryBox from './story_box.js'
React.render(
<StoryBox />,
document.getElementById('container')
)
|
packages/shared/forks/object-assign.umd.js | empyrical/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import React from 'react';
const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
export d... |
client/src/client.js | Alexoner/sloth | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import io from 'socket.io-client';
import... |
examples/huge-apps/app.js | batmanimal/react-router | import React from 'react';
import { Router } from 'react-router';
import stubbedCourses from './stubs/COURSES';
var rootRoute = {
component: 'div',
childRoutes: [{
path: '/',
component: require('./components/App'),
childRoutes: [
require('./routes/Calendar'),
require('./routes/Course'),
... |
src/ButtonInput.js | roderickwang/react-bootstrap | import React from 'react';
import Button from './Button';
import FormGroup from './FormGroup';
import InputBase from './InputBase';
import childrenValueValidation from './utils/childrenValueInputValidation';
class ButtonInput extends InputBase {
renderFormGroup(children) {
let {bsStyle, value, ...other} = this.p... |
client/src/components/homePage/index.js | joejknowles/Open-Up | import React from 'react';
import { Link } from 'react-router';
export default () => (
<div>
<h3>Venue List</h3>
<Link to="/venue">Venue 1</Link>
</div>
);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.