path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client/src/utils/requireAuth.js | WillyWunderdog/More-Recipes-Gbenga | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { browserHistory } from 'react-router';
export default function (ComposedComponent) {
class Authenticate extends React.Component {
componentWillMount() {
if (!this.props.isAuthenticated) {
b... |
lib/src/graphcard.js | SerendpityZOEY/Solr-Search-React-UI | /**
* Created by yue on 2/16/17.
*/
import React from 'react';
import {Card, CardActions, CardHeader, CardText, CardTitle} from 'material-ui/Card';
import Graph from 'react-graph-vis';
class GraphCard extends React.Component{
constructor(props){
super(props);
this.state = {
node: ''
... |
src/svg-icons/action/restore-page.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRestorePage = (props) => (
<SvgIcon {...props}>
<path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm-2 16c-2.05 0-3.81-1.24-4.58-3h1.71c.63.9 1.68 1.5 2.87 1.5 1.93 0 3.... |
frontend/src/components/Sidebar/Sidebar.js | felipear89/promotion-admin | import React, { Component } from 'react';
import { Link } from 'react-router'
class Sidebar extends Component {
handleClick(e) {
e.preventDefault();
e.target.parentElement.classList.toggle('open');
}
activeRoute(routeName) {
return this.props.location.pathname.indexOf(routeName) > -1 ? 'nav-item na... |
src/components/settings/Prompts.js | reichert621/log-book | import React from 'react'
import { connect } from 'react-redux'
import { actions } from '../../redux/modules/prompts'
import NewItemInput from '../forms/NewItemInput'
import Prompt from './Prompt'
const mapStateToProps = (state) => ({
prompts: state.prompts.items,
fetching: state.prompts.isFetching
})
export clas... |
src/components/Invites/index.js | unihackhq/skilled-acolyte-frontend | import React from 'react';
import { observer, inject, PropTypes as MobxPropTypes } from 'mobx-react';
import { Box, Title } from 'bloomer';
import groupBy from 'lodash.groupby';
import keyBy from 'lodash.keyby';
import Loader from '../Loader';
import Page from '../Page';
import Invite from './Invite';
class Invites ex... |
src/components/Error.js | ericyd/gdrive-copy | /**
* Error message container
*/
'use strict';
import React from 'react';
import Alert from './Alert';
import Warning from './icons/Warning';
export default function Error(props) {
return (
<Alert
label="Oh no! Something went wrong"
className="alert--error"
icon={<Warning />}
>
{pr... |
actor-apps/app-web/src/app/components/JoinGroup.react.js | changjiashuai/actor-platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import DialogActionCreators from 'actions/DialogActionCreators';
import JoinGroupActions from 'actions/JoinGroupActions';
import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line
class JoinGroup extends React.Component {
st... |
test/utils.js | Brogency/react-form-tools | import React from 'react';
import BaobabPropTypes from 'baobab-prop-types';
export const Root = React.createClass({
childContextTypes: {
tree: BaobabPropTypes.baobab,
},
getChildContext: function() {
return {
tree: this.props.tree,
};
},
render: function() {
... |
client/src/containers/AddTodo.js | welldone-software/cf-demo-micro-app | import React from 'react';
import { connect } from 'react-redux';
import { setText, addTodo,openAddListModal } from '../actions';
let AddTodo = ({ text, onAddTodo, onTextChange }) => {
return (
<div>
<form onSubmit={e => e.preventDefault() || onAddTodo(text)}>
<input className="new-todo" value={tex... |
src/components/Widgets/SelectPreview.js | dopry/netlify-cms | import PropTypes from 'prop-types';
import React from 'react';
import previewStyle from './defaultPreviewStyle';
export default function SelectPreview({ value }) {
return <div style={previewStyle}>{value ? value.toString() : null}</div>;
}
SelectPreview.propTypes = {
value: PropTypes.string,
};
|
src/routes/Home/Home.js | arvigeus/studentlife | import React from 'react';
import s from '../../styles/Article.css';
// eslint-disable max-len
export default () =>
<article className={s.spread}>
<h2>Кои сме ние?</h2>
<p><em>СХД „Студентски Живот“</em> е организация на доброволни начала. Такава вече има в още около 200 страни по света. Движещата ни сила ... |
packages/site/src/components/seo.js | massgov/mayflower | /**
* SEO component that queries for data with
* Gatsby's useStaticQuery React hook
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { useStaticQuery, graphql } from 'gatsby';
function SEO({
des... |
src/index.js | TalhaAwan/react-chess | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import Game from './components/game.js'
ReactDOM.render(
<Game />,
document.getElementById('root')
);
|
src/containers/ThemePicker.js | tibotiber/rd3 | import React from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import styled from 'styled-components'
import _ from 'lodash'
import themes from 'utils/themes'
import {selectTheme} from 'redux/actions'
const {func} = PropTypes
const List = styled.ul`
position: absolute;
bottom: 5p... |
docs/src/pages/components/steppers/CustomizedSteppers.js | lgollut/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { makeStyles, withStyles } from '@material-ui/core/styles';
import clsx from 'clsx';
import Stepper from '@material-ui/core/Stepper';
import Step from '@material-ui/core/Step';
import StepLabel from '@material-ui/core/StepLabel';
import Check from '@... |
app/javascript/mastodon/components/attachment_list.js | amazedkoumei/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
const filename = url => url.split('/').pop().split('#')[0].split('?')[0];
export default class AttachmentList extends Immutabl... |
src/client/assets/js/features/driver/components/Publish/Publish.js | me-box/platform-sdk | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class Publish extends React.Component {
render(){
return <h1> publish </h1>
}
} |
app/javascript/mastodon/features/ui/components/columns_area.js | robotstart/mastodon | import React from 'react';
import PropTypes from 'prop-types';
class ColumnsArea extends React.PureComponent {
render () {
return (
<div className='columns-area'>
{this.props.children}
</div>
);
}
}
ColumnsArea.propTypes = {
children: PropTypes.node
};
export default ColumnsArea;
|
example/examples/FitToSuppliedMarkers.js | tt-sport-mobile/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Dimensions,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LATITUDE_DELTA = 0.0922;
const... |
src/index.js | azuqua/react-dnd-scrollzone | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import throttle from 'lodash.throttle';
import raf from 'raf';
import getDisplayName from 'react-display-name';
import hoist from 'hoist-non-react-statics';
import { noop, intBetween, getCoords } from ... |
src/components/organisms/Bar.js | rudionrails/search-widget-react-redux | import React from 'react';
import PropTypes from 'prop-types';
import Loading from 'src/components/atoms/Loading';
import './Bar.css';
class Bar extends React.Component {
static propTypes = {
className: PropTypes.string,
isLoading: PropTypes.bool,
query: PropTypes.string,
onSearch: PropTypes.func.is... |
src/containers/Settings.js | albertoblaz/lord-commander | import React from 'react'
// import React, { PropTypes } from 'react'
const Settings = (props) =>
<div>Settings</div>
export default Settings
|
nlyyAPP/component/随访管理/受试者基线访视日期/MLSszjxfsrqSZ.js | a497500306/nlyy_APP |
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
Navigator,
ListView,
Alert,
TouchableHighlight,
DatePickerIOS,
Picker,
ActivityIndicator
} from 'react-native';
//时间操作
var moment = require('moment');
moment().forma... |
editor/components/PaperBar.js | conundrumer/sim-seq | import React from 'react'
import { Paper } from 'material-ui'
export default class PaperBar extends React.Component {
render() {
return (
<Paper
className={'paper-bar ' + (this.props.className || '')}
rounded={false}
transitionEnabled={false}
onTouchStart={e => e.preventDefa... |
actor-apps/app-web/src/app/index.js | liuzwei/actor-platform | import crosstab from 'crosstab';
import React from 'react';
import Router from 'react-router';
import Raven from 'utils/Raven'; // eslint-disable-line
import isMobile from 'utils/isMobile';
import ReactMixin from 'react-mixin';
import Intl from 'intl'; // eslint-disable-line
import LocaleData from 'intl/locale-data/j... |
navigation/MainTabNavigator.js | modusplatform/KeystoneApp | import React from 'react';
import { Platform } from 'react-native';
import { Ionicons } from '@expo/vector-icons';
import { TabNavigator, TabBarBottom } from 'react-navigation';
import Colors from '../constants/Colors';
import HomeScreen from '../screens/HomeScreen';
import MapScreen from '../screens/MapScreen';
impo... |
src/Parser/Mage/Frost/Modules/Items/ZannesuJourney.js | enragednuke/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import getDamageBonus from 'Parser/Mage/Shared/Modules/GetDamageBonus';
import ItemDamageDone from 'Main/ItemDamageDone'... |
src/containers/NotFound/NotFound.js | Druddigon/react-redux-learn | import React from 'react';
export default function NotFound() {
return (
<div className="container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
}
|
src/index.js | ekazakov/catcher | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/svg-icons/communication/phonelink-setup.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkSetup = (props) => (
<SvgIcon {...props}>
<path d="M11.8 12.5v-1l1.1-.8c.1-.1.1-.2.1-.3l-1-1.7c-.1-.1-.2-.2-.3-.1l-1.3.4c-.3-.2-.6-.4-.9-.5l-.2-1.3c0-.1-.1-.2-.3-.2H7c-.1 0-.2.1-.3.2l-.2 1... |
examples/huge-apps/components/Dashboard.js | sprjr/react-router | import React from 'react';
import { Link } from 'react-router';
class Dashboard extends React.Component {
render () {
let { courses } = this.props;
return (
<div>
<h2>Super Scalable Apps</h2>
<p>
Open the network tab as you navigate. Notice that only the amount of
... |
src/website/app/demos/Card/CardActions/bestPractices.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import { mineralTheme } from '../../../../../library/themes';
import Button from '../../../../../library/Button';
import _Link from '../../../../../library/Link';
import Card, {
CardActions,
CardBlock,
CardTitle
} from '../../../../../library/Card';
import loremIpsum from '.... |
sub-packs/themes/zealder-default-theme/src/routes/PgStandard.js | Zealder/zealder-cms | // @flow
import React from 'react';
import _ from 'lodash/core';
export default class PgStandard extends React.Component {
constructor(props) {
super(props);
// bind functions
this.addHtmlCssClass = this.addHtmlCssClass.bind(this);
this.addHtmlCssClass();
}
componentDidMount() {
const { p... |
app/lib/PerformanceChart.js | scriptfoundry/mobilefps | import React from 'react';
import {EventEmitter} from './Utils';
import {Report} from './Report';
import {PerformanceItemComponent} from './PerformanceItemComponent';
export class PerformanceChart extends React.Component {
constructor (...props) {
super(...props);
this.state = {
filter... |
example/src/reduxapp.js | zordius/reservice | import React from 'react'
import { render } from 'react-dom'
import PropTypes from 'prop-types'
import { applyMiddleware, createStore, compose } from 'redux'
import { Provider } from 'react-redux'
import reduxLogger from 'redux-logger'
import reducer from './reducers/index'
import middlewares from './middlewares/index... |
src/svg-icons/communication/phonelink-lock.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkLock = (props) => (
<SvgIcon {...props}>
<path d="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-8.2 10V9.5C10.8 8.1 9.4 7 8 7S5.2 8.1 5.2 ... |
app/packs/src/admin/converter/edit/TableForm.js | ComPlat/chemotion_ELN | import React, { Component } from 'react';
import { Button, Row, Col } from 'react-bootstrap';
import TableColumn from './TableColumn';
class TableForm extends Component {
constructor(props) {
super(props)
}
render() {
const { table, updateTable, addOperation, updateOperation, removeOperation } = this.p... |
src/svg-icons/action/label-outline.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLabelOutline = (props) => (
<SvgIcon {...props}>
<path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l... |
client/components/footer.js | virajs07/todoRedux | import React from 'react';
import FilterLink from '../containers/filterLink';
class Footer extends React.Component{
render(){
return(
<p>
Show:
{" "}
<FilterLink filter="SHOW_ALL">All</FilterLink>
{","}
<FilterLink filter="SHOW_COMPLETED">Completed</FilterLink>
{","}
<FilterLink filt... |
react/features/remote-video-menu/components/web/MuteRemoteParticipantDialog.js | bgrozev/jitsi-meet | /* @flow */
import React from 'react';
import { Dialog } from '../../../base/dialog';
import { translate } from '../../../base/i18n';
import { connect } from '../../../base/redux';
import AbstractMuteRemoteParticipantDialog
from '../AbstractMuteRemoteParticipantDialog';
/**
* A React Component with the content... |
src/components/TagList.js | oglimmer/linky |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import TagListHierarchy from './TagListHierarchy';
import TagListSearch from './TagListSearch';
const TagList = ({ searchBarTerm, serverSide }) => (
<div>
{ serverSide || !searchBarTerm ? <TagListHierarchy /> ... |
src/js/components/mobile_usercenter.js | ZSMingNB/react-news | import React from 'react';
import ReactDOM from 'react-dom';
import {Row, Col, Modal} from 'antd';
import {Menu, Icon} from 'antd';
const SubMenu = Menu.SubMenu;
const MenuItemGroup = Menu.ItemGroup;
import {
Tabs,
message,
Form,
Input,
Button,
Checkbox,
Card,
notification,
Upload
} from 'antd';
const FormItem... |
frontend/src/index.js | aamerio/kikundi | import React from 'react';
import { render } from 'react-dom';
import {
BrowserRouter as Router,
Route,
Link,
Switch,
Redirect
} from 'react-router-dom'
// Styles
// Import Font Awesome Icons Set
import 'font-awesome/css/font-awesome.min.css';
// Import Simple Line Icons Set
import 'simple-line-icons/css/sim... |
src/svg-icons/action/note-add.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionNoteAdd = (props) => (
<SvgIcon {...props}>
<path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"/>
</SvgIcon>
);... |
fields/types/number/NumberField.js | naustudio/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)) {
... |
src/components/File/File.js | fkn/ndo | import React from 'react';
import PropTypes from 'prop-types';
import Link from '../Link';
const File = ({ file }) => (
<span>
<Link to={`/api/get_file/${file.id}`}>{file.internalName}</Link>
</span>
);
File.propTypes = {
file: PropTypes.shape({
url: PropTypes.string,
internalName: PropTypes.string.... |
app/javascript/mastodon/features/ui/components/media_modal.js | haleyashleypraesent/ProjectPrionosuchus | import React from 'react';
import LoadingIndicator from '../../../components/loading_indicator';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ExtendedVideoPlayer from '../../../components/extended_video_player';
import { defineMessages, injectIntl } from 'react-... |
react/pages/Footer.js | Seanskiver/b2b_application | import React from 'react';
//import { Table } from 'react-bootstrap';
import {Form, FormControl, FormGroup, InputGroup, ControlLabel, Button, Table, Carousel, Jumbotron, Panel, Col, DropdownButton, MenuItem, } from 'react-bootstrap';
import { HashRouter as Router, Route, Link, Redirect } from 'react-router-dom';
class... |
src/components/Overview.js | unikorp/king | import React from 'react';
import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn } from 'material-ui/Table';
const Overview = () => (
<Table>
<TableHeader displaySelectAll={false}>
<TableRow>
<TableHeaderColumn>Key</TableHeaderColumn>
<TableHeaderColumn>Value</... |
src/js/components/Body/Portfolio.js | hadnazzar/ModernBusinessBootstrap-ReactComponent | import React from 'react';
export default class Portfolio extends React.Component {
render() {
return(
<section id="portfolio">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2>Portfolio</h2>
<hr class="star-primary"/>
</div>
</div... |
src/js/ui/app/components/music/scrubbar.js | bastuijnman/carpi | import React from 'react';
import timeFormatter from './../../utils/timeformatter';
const style = {
container: {
position: 'absolute',
left: '0',
bottom: '0',
width: '100%'
},
barContainer: {
background: '#0B486B',
height: '0.5rem',
width: '100%'
... |
src/main/js/players/components/PlayerAttributes.js | Bernardo-MG/dreadball-toolkit-webpage | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl } from 'react-intl';
import Box from 'grommet/components/Box';
import Columns from 'grommet/components/Columns';
import Value from 'grommet/components/Value';
import playerMessages from 'i18n/player';
/**
* Panel showing a player a... |
app/containers/HomePage/index.js | fforres/coworks_2 | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a neccessity for you then you can refactor it and remove
* the ... |
src/About.js | ramalhovfc/fisioManager | import React from 'react';
class About extends React.Component {
render() {
return (
<div>
<p>João Ramalho</p>
<p><a href="mailto:ramalho.vfc@gmail.com"> Email </a></p>
<p><a href="https://github.com/ramalhovfc"> Github </a></p>
</div>
);
}
}
export default About; |
client/src/components/ChooseCampaign/RenderNearbyCampaigns.js | codefordenver/Circular | import React from 'react';
import PropTypes from 'prop-types';
// import RenderAddressHeading from './RenderAddressHeading';
// import SubmitButton from './SubmitButton';
const RenderNearbyCampaigns = ({ nearbyCampaigns, selectedAddress }) => (
<div>
{/* <form>
<RenderAddressHeading headingTitle={'We found... |
stories/Resizeable/SimpleResizeableEditor/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
import {
convertFromRaw,
EditorState,
} from 'draft-js';
import Editor, { composeDecorators } from 'draft-js-plugins-editor';
import createResizeablePlugin from 'draft-js-resizeable-plugin';
import createFocusPlugin from 'draft-js-focus-plugin';
import createColorBlockPl... |
src/routes.js | 18621032336/Three | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
examples/full-example/src/isomorphic/variations/bucket_D/components/lazy.js | yahoo/mendel | /* Copyright 2015, Yahoo Inc.
Copyrights licensed under the MIT License.
See the accompanying LICENSE file for terms. */
import React from 'react';
import Button from './button';
class Lazy extends React.Component {
render() {
return (
<p>
Lazy (on bucket_D) Content with
... |
docs/src/app/components/pages/components/Stepper/VerticalNonLinearStepper.js | kasra-co/material-ui | import React from 'react';
import {
Step,
Stepper,
StepButton,
StepContent,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
/**
* A basic vertical non-linear implementation
*/
class VerticalNonLinear extends React.Component {... |
src/@ui/Icon/icons/CheckboxChecked.js | NewSpring/Apollos | import React from 'react';
import PropTypes from 'prop-types';
import { Svg } from '../../Svg';
import makeIcon from './makeIcon';
const Icon = makeIcon(({ size = 32, fill, ...otherProps } = {}) => (
<Svg width={size} height={size} viewBox="0 0 24 24" {...otherProps}>
<Svg.Path
d="M2.57,0 L19.43,0 C20.85,0... |
src/routes/Counter/components/Counter.js | sljuka/buzzler-ui | import React from 'react'
export const Counter = (props) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {props.counter}</h2>
<button className='btn btn-default' onClick={props.increment}>
Increment
</button>
{' '}
<button className='btn btn-default' onClick={props.doubleAsync}>
... |
actor-apps/app-web/src/app/components/modals/Contacts.react.js | suxinde2009/actor-platform | //
// Deprecated
//
import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
import ContactStore from 'stores/ContactStore';
import Modal from... |
src/routes/privacy/index.js | DaveyEdwards/myiworlds | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import { graphql } from 'rel... |
consoles/my-joy-navigation/src/components/icons.js | yldio/joyent-portal | import React from 'react';
import { withTheme } from 'emotion-theming';
import BaseDataCenter from 'joyent-icons/dist/es/data-center';
import BaseTriton from 'joyent-icons/dist/es/triton';
import BaseServices from 'joyent-icons/dist/es/services';
const Colors = Component =>
withTheme(({ theme = {}, ...rest }) => (
... |
techCurriculum/ui/solutions/5.3/src/components/Card.js | jennybkim/engineeringessentials | /**
* Copyright 2017 Goldman Sachs.
* 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 to... |
js/BaseComponents/Badge.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : 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 3 of the License, or
*... |
client/views/room/Room.stories.js | VoiSmart/Rocket.Chat | import React from 'react';
import { RoomTemplate } from './components/RoomTemplate/RoomTemplate';
export default {
title: 'room',
component: RoomTemplate,
};
export const Default = () => (
<RoomTemplate>
<RoomTemplate.Header>header</RoomTemplate.Header>
<RoomTemplate.Body>body</RoomTemplate.Body>
<RoomTempl... |
app/components/Header.js | fakob/electron-test-v003 | import React from 'react';
import Slider, { Range } from 'rc-slider';
import Tooltip from 'rc-tooltip';
import styles from './Header.css';
import UndoRedo from '../containers/UndoRedo';
// import '../../node_modules/rc-slider/assets/index.css';
import save from './../img/Thumb_SAVE.png';
import hidden from './../img/Th... |
packages/neos-ui-ckeditor-bindings/src/manifest.richtextToolbar.js | dimaip/neos-ui | import React from 'react';
import omit from 'lodash.omit';
import IconButton from '@neos-project/react-ui-components/src/IconButton/';
import LinkIconButton from './EditorToolbar/LinkIconButton';
import StyleSelect from './EditorToolbar/StyleSelect';
import RichTextToolbarRegistry from './registry/RichTextToolbarRegis... |
fields/types/cloudinaryimage/CloudinaryImageField.js | joerter/keystone | import xhr from 'xhr';
import React from 'react';
import ReactDOM from 'react-dom';
import Field from '../Field';
import Select from 'react-select';
import { Button, FormField, FormInput, FormNote } from 'elemental';
import Lightbox from '../../components/Lightbox';
import classnames from 'classnames';
const SUPPORTE... |
demo/index.js | technicallyfeasible/dataparser | import React from 'react';
import ReactDOM from 'react-dom';
import Root from './containers/Root';
import '../assets/css/main.less';
function render() {
ReactDOM.render(<Root />, document.getElementById('root'));
}
if (document.readyState !== 'completed') {
document.addEventListener('DOMContentLoaded', render);... |
src/svg-icons/action/perm-camera-mic.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermCameraMic = (props) => (
<SvgIcon {...props}>
<path d="M20 5h-3.17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v-2.09c-2.83-.48-5-2.94-5-5.91h2c0 2.21 1.79 4 4 4s4-1.79 4-4h2c0 2.97-2.17 5.43-5 ... |
src/svg-icons/maps/rate-review.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRateReview = (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-2zM6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14H6zm1... |
app/node_modules/react-router/es6/RouteUtils.js | BZhawaii/ArtStorm | 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; };
import React from 'react';
function isValidChild(object) {
... |
src/app/containers/AddMarker.js | pingwing/travel-guide-las-palmas | import React from 'react';
import {Component} from 'react';
import PossitionDetails from './PossitionDetails';
import InputComponent from './InputComponent';
import SubmitButton from './SubmitButton';
export default class AddMarker extends Component {
render() {
return (
<div>
<form onSubmit={this.... |
src/components/UpcomingEventHero.js | sjalgeo/mancreact-client | import React from 'react';
import moment from 'moment';
import { Link } from 'react-router-dom';
import { getEventDescriptions } from '../utilities/event';
const UpcomingEventHero = ({ event }) => {
const { mainTitle, subTitle, byline, description } = getEventDescriptions(
event
);
const date = mo... |
client/admin/settings/inputs/BooleanSettingInput.stories.js | Sing-Li/Rocket.Chat | import { Field } from '@rocket.chat/fuselage';
import { action } from '@storybook/addon-actions';
import React from 'react';
import { BooleanSettingInput } from './BooleanSettingInput';
export default {
title: 'admin/settings/inputs/BooleanSettingInput',
component: BooleanSettingInput,
decorators: [
(storyFn) =>... |
docs/app/Examples/elements/List/Variations/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const ListVariations = () => (
<ExampleSection title='Types'>
<ComponentExample
... |
app/app.js | sandim27/ReduxApp | import React from 'react';
import { render } from 'react-dom';
import { Router, Route, IndexRoute } from 'react-router';
import { Provider } from 'react-redux';
import store, { history } from './store';
import Main from './containers/Main/index';
import Home from './containers/Home';
import Photos from './containers/... |
app/components/invitation/invitation.js | tidepool-org/blip |
/**
* Copyright (c) 2014, 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 distributed in th... |
example/extract-css/template.js | iansinnott/react-static-webpack-plugin | import React from 'react';
const Html = (props) => (
<html lang='en'>
<head>
<title>{props.title}</title>
</head>
<body>
<div id='root' dangerouslySetInnerHTML={{ __html: props.body }} />
<script src='/app.js' />
</body>
</html>
);
export default Html;
|
src/scripts/functions/svg_renderer.js | Florenz23/wifi_signals | import React from 'react';
import ReactDOMServer from 'react-dom/server';
import Graph from './components/graph'
export default function(data,version) {
return ReactDOMServer.renderToStaticMarkup(<Graph data={data} viewSelection={version}/>);
}
|
src/svg-icons/content/next-week.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentNextWeek = (props) => (
<SvgIcon {...props}>
<path d="M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14.55 3 14 3h-4c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2... |
src/ModalDialog.js | victorzhang17/react-bootstrap | /* eslint-disable react/prop-types */
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ModalDialog = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
/**
* A Callback fired when the header closeButton or non-static backdrop is ... |
pootle/static/js/admin/components/Language/LanguageForm.js | pavels/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 FormElement from 'compo... |
src/challenges/react/React_27.js | bonham000/fcc-react-tests-module | /* eslint-disable */
import React from 'react'
import assert from 'assert'
import { transform } from 'babel-standalone'
import Enzyme from '../Enzyme';
const shallow = Enzyme.shallow;
const mount = Enzyme.mount;
const render = Enzyme.render;
export const QA = true;
// ---------------------------- define challenge t... |
app/javascript/mastodon/components/avatar_overlay.js | imomix/mastodon | import React from 'react';
import PropTypes from 'prop-types';
class AvatarOverlay extends React.PureComponent {
static propTypes = {
staticSrc: PropTypes.string.isRequired,
overlaySrc: PropTypes.string.isRequired,
};
render() {
const { staticSrc, overlaySrc } = this.props;
const baseStyle = {... |
src/components/LearnMore/index.js | mosesharrisjr/vr-landing | import React from 'react';
import styles from './styles.scss'
import BaseComponent from '../../../custom_modules/react-base';
class LearnMore extends BaseComponent {
constructor(props) {
super(props);
}
render(){
return(
<div className={styles.learnWrapper}>
<div className={styles.li... |
imports/ui/components/search/SearchFilters/SearchFilters.js | pletcher/cltk_frontend | import React from 'react';
import PropTypes from 'prop-types';
import RaisedButton from 'material-ui/RaisedButton';
import baseTheme from 'material-ui/styles/baseThemes/lightBaseTheme';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
class SearchFilters extends React.Component {
getChildContext() {
retur... |
src/icons/Battery60Icon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class Battery60Icon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path fillOpacity=".3" d="M34 10.67C34 9.19 32.81 8 31.33 8H28V4h-8v4h-3.33C15.19 8 14 9.19 14 10.67V22h20V10.67z... |
src/parser/warlock/affliction/modules/talents/PhantomSingularity.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import SPELLS from 'common/SPELLS';
import { formatThousands } from 'common/format';
import SpellLink from 'common/SpellLink';
import StatisticListBoxItem from 'interface/others/... |
src/components/welcomeView.js | scientific-tool-set/HermeneutiX-react | import React from 'react';
import { Link } from 'react-router';
export default () => (
<div className='container-fluid'>
<h3>Welcome to SciToS – HermeneutiX</h3>
<Link to='/input' className='btn btn-primary'>
{'Create new HermeneutiX Project'}
</Link>
</div>
);
|
src/components/landing-page.js | Q42/CT-3000 | import React from 'react';
import { Redirect } from 'react-router';
import { Link } from 'react-router-dom';
import { trackPage } from '../classes/googleanalytics';
export default class LandingPage extends React.Component {
constructor(props) {
super(props);
trackPage('/', 'nl');
}
render() {
if (wi... |
src/components/run.js | chuntielin/Blog_Yeoman_Fullstack | import React from 'react';
import router from './router';
|
src/ui-kit/UL/Item/index.js | Menternship/client-web | // @flow
import React from 'react';
import { ListItem } from 'react-toolbox/lib/list';
import classnames from 'classnames';
import { nonStringContent, clickable } from './style.pcss';
type $props = {
children?: any,
className?: string,
rightActions?: any[],
leftActions?: any[],
subtitle?: string,
ripple?: ... |
boilerplates/app/src/routes/user/index.js | hexagonframework/antd-admin-cli | import React from 'react'
import PropTypes from 'prop-types'
import { routerRedux } from 'dva/router'
import { connect } from 'dva'
import { Row, Col, Button, Popconfirm } from 'antd'
import List from './List'
import Filter from './Filter'
import Modal from './Modal'
const User = ({ location, dispatch, user, loading }... |
app/components/IssueIcon/index.js | qiubit/lamp-experiment | import React from 'react';
function IssueIcon(props) {
return (
<svg
height="1em"
width="0.875em"
className={props.className}
>
<path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v... |
node_modules/react-bootstrap/es/NavbarCollapse.js | geng890518/editor-ui | 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/pages/MainLayout_old/Header/menuBtn.js | humaniq/humaniq-pwa-website | import React from 'react';
import * as T from "prop-types";
const HeaderMenuBtn = ({x, max, theme}) => {
const color = theme === 'dark' ? '#179cde' : '#fff'
return (
<span>
{x < max/2 ?
<svg
width="22px" height="14px" viewBox="0 0 22 14" version="1.1" xmlns="http://www.w3.org/2000/svg"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.