path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/parser/hunter/beastmastery/modules/features/AlwaysBeCasting.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import SpellLink from 'common/SpellLink';
import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting';
class AlwaysBeCasting extends CoreAlwaysBeCasting {
get suggestionThresholds() {
ret... |
blueocean-material-icons/src/js/components/svg-icons/social/group-add.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const SocialGroupAdd = (props) => (
<SvgIcon {...props}>
<path d="M8 10H5V7H3v3H0v2h3v3h2v-3h3v-2zm10 1c1.66 0 2.99-1.34 2.99-3S19.66 5 18 5c-.32 0-.63.05-.91.14.57.81.9 1.79.9 2.86s-.34 2.04-.9 2.86c.28.09.59.14.91.14zm-5 0c1.66 0 2.99-1.34 2.99-3S... |
src/svg-icons/hardware/speaker.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSpeaker = (props) => (
<SvgIcon {...props}>
<path d="M17 2H7c-1.1 0-2 .9-2 2v16c0 1.1.9 1.99 2 1.99L17 22c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 2c1.1 0 2 .9 2 2s-.9 2-2 2c-1.11 0-2-.9-2-2s.89-2 2-2zm0 16c... |
src/components/Action/Action.js | Endeauvirr/NeatIdeasList | import React from 'react';
const Action = (props) => ( // stateless function component . They are faster, easier to test and works perfectly fine for components that only get props and dont use state
<div className="action--wrapper">
<button
onClick={ props.handlePickOption }
disa... |
examples/animating-transitions/src/components/Menu.js | ui-router/react | import React from 'react';
import { UISref } from '@uirouter/react';
export const Menu = () => (
<div className="app-menu">
<UISref to="home">
<a>Home</a>
</UISref>
<UISref to="about">
<a>About</a>
</UISref>
</div>
);
|
app/components/Account/Reset.js | tanysaur/crappy-birds | import React from 'react';
import { connect } from 'react-redux'
import { resetPassword } from '../../actions/auth';
import Messages from '../Messages';
class Reset extends React.Component {
constructor(props) {
super(props);
this.state = { password: '', confirm: '' };
}
handleChange(event) {
this.s... |
src/svg-icons/image/timelapse.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimelapse = (props) => (
<SvgIcon {...props}>
<path d="M16.24 7.76C15.07 6.59 13.54 6 12 6v6l-4.24 4.24c2.34 2.34 6.14 2.34 8.49 0 2.34-2.34 2.34-6.14-.01-8.48zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.4... |
app/main.js | JobCompare/jc-ui | import React from 'react';
import { render } from 'react-dom';
import { Router, Route, browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import store from './store';
import Layout from './components/containers/Layout';
import HTTPError from './components/containers/HTTPError';
import './s... |
frontend/src/components/user-menu/root.js | 1905410/Misago | import React from 'react';
import { GuestNav, CompactGuestNav } from 'misago/components/user-menu/guest-nav'; // jshint ignore:line
import { UserNav, CompactUserNav} from 'misago/components/user-menu/user-nav'; // jshint ignore:line
export class UserMenu extends React.Component {
render() {
/* jshint ignore:star... |
app/components/project.js | techfolios/electron-edmund | import React from 'react';
import { Form, Divider, Button } from 'semantic-ui-react';
class Project extends React.Component {
constructor() {
super();
}
render() {
return (
<Form>
<Form.Input label='Title'/>
<Form.Input label='Date'/>
<Form.Input label='Tag(s)'/>
... |
platform/ui/src/components/studyBrowser/StudyBrowser.js | OHIF/Viewers | import React from 'react';
import PropTypes from 'prop-types';
import { Thumbnail } from './Thumbnail.js';
import './StudyBrowser.styl';
function StudyBrowser(props) {
const {
studies,
onThumbnailClick,
onThumbnailDoubleClick,
supportsDrag,
showThumbnailProgressBar,
} = props;
return (
<... |
newtab/src/routes/IndexPage.js | wq1977/pexelbg | import React from 'react';
import { connect } from 'dva';
import styles from './IndexPage.css';
import TodoList from '../components/Todos.js';
function changeInputBuffer(dispatch, event) {
dispatch({ type: 'todo/buffer', payload: event.target.value });
}
function handleKeyPress(props, event) {
if (event.charCode ... |
client/src/ui/AlbumList.js | irskep/summertunes | import React from 'react';
import List from "../uilib/List";
import KComponent from "../util/KComponent";
import {
kFilteredAlbums,
kAlbum,
setAlbum,
setAlbumFilter,
kAlbumFilter,
} from "../model/browsingModel";
import {
kKeyboardFocus,
keyboardFocusOptions,
} from "../mod... |
admin/client/App/screens/List/components/Filtering/ListFiltersAdd.js | joerter/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import Transition from 'react-addons-css-transition-group';
import classnames from 'classnames';
import ListFiltersAddForm from './ListFiltersAddForm';
import Popout from '../../../../shared/Popout';
import PopoutList from '../../../../shared/Popout/PopoutLis... |
ui/src/app/app.js | ridakk/node-log-server | import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import { Router, Route, hashHistory } from 'react-router';
import MyApps from './components/myApps';
import NewApp from './components/newApp';
import NewUser from './components/newUser';
import Apps f... |
src/svg-icons/av/album.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvAlbum = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 14.5c-2.49 0-4.5-2.01-4.5-4.5S9.51 7.5 12 7.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5zm0-5.5c-... |
src/main/js/element/AddButton.js | MannanM/corporate-game-share | import React, { Component } from 'react';
import { Button } from 'react-bootstrap';
import { AddToLibrary } from '../Client';
class AddButton extends Component {
constructor(props, context) {
super(props, context);
this.handleClick = this.handleClick.bind(this);
this.state = { message: 'Add to Collect... |
src/feed.js | bsansouci/sixteen-fs | import React, { Component } from 'react';
import Util, {Hover, Rule} from './util';
import {HeaderBar} from './header';
import {Post, Ad, AdFooter, NewStatus} from './content';
import {NavBar} from './nav';
class AdsBar extends Component {
render() {
var text = this.props.text;
var arr = Array(this.props.num... |
app/components/PagedGrid/index.js | kevinnorris/bookTrading | import React from 'react';
import { Pagination } from 'react-bootstrap';
import BookGrid from 'components/BookGrid';
function PagedGrid({ numPages, activePage, selectPage, books, selectBook, loading }) {
return (
<div>
<BookGrid books={books} select={selectBook} loading={loading} />
<Pagination
... |
docs/src/examples/elements/Segment/Types/SegmentExampleSegment.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleSegment = () => (
<Segment>Pellentesque habitant morbi tristique senectus.</Segment>
)
export default SegmentExampleSegment
|
RNApp/app/components/Button/Button.js | spencercarli/react-native-meteor-boilerplate | import React from 'react';
import { Text, TouchableOpacity } from 'react-native';
import styles from './styles';
const Button = (props) => {
const { text, onPress } = props;
return (
<TouchableOpacity style={styles.button} onPress={onPress}>
<Text style={styles.buttonText}>
{text}
</Text>
... |
client/src/components/ReportsTable.js | BrianMehrman/rails_probe | import React from 'react';
import { Link } from 'react-router-dom';
import Box from 'grommet/components/Box';
import Table from 'grommet/components/Table';
const ReportsTable = ({ reports }) => {
const items = reports || [];
console.log(items);
return (
<Box direction='column' flex={true} justify='center' ... |
webui/components/Header.js | stiftungswo/izivi_relaunch | import React from 'react';
import Link from 'next/link';
import { Menu, Dropdown, Label, Header } from 'semantic-ui-react';
const MenuLayout = ({ pathname, children, loading, ...rest }) => (
<Menu color="blue" attached="top" size="tiny" {...rest}>
<Link href="/">
<Menu.Item active={(pathname === '/')}>
... |
client/src/components/GalleryToolbar/Buttons/AddFolderButton.js | silverstripe/silverstripe-asset-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import i18n from 'i18n';
/**
* Gallery Toolbar add folder button.
*
* @returns {XML} button
*/
class AddFolderButton extends Component {
constructor() {
super();
this.handleCreateFolder = this.handleCreateFolder.bind(this);
}... |
lib/components/listitem.js | pairyo/kattappa | import React from 'react';
import QuillComponent from './quill';
export default class LI extends React.Component {
constructor(props) {
super(props);
this.captureReturn = this.captureReturn.bind(this);
this.onContentChanged = this.onContentChanged.bind(this);
}
captureReturn() {
if(this.props.... |
src/app/components/share-panel.js | pashist/soundcloud-like-player | import React from 'react';
import {connect} from 'react-redux';
import SharePanelItems from './share-panel-items';
import SharePanelProgressBar from './share-panel-progress-bar';
import SharePanelExtra from './share-panel-extra';
import {toggleSharePanel} from '../actions'
export default class SharePanel extends Reac... |
node_modules/react-router/es6/Link.js | gurusewak/react101 | 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 = {... |
05-mybooks-router-lab4/src/Header.js | iproduct/course-node-express-react | import React from 'react';
import { Link } from 'react-router-dom';
export default function Header({ titleText, buttonText, buttonLink, ...rest }) {
return (
<React.Fragment>
<h2 className="header center orange-text">My Library</h2>
<div className="row center">
<h5 className="header col s12 l... |
src/molecules/header/index.js | dsmjs/components | import React from 'react';
import {string} from 'prop-types';
import Link from 'gatsby-link';
import Logo from '../../atoms/logo';
import DsmJsBar from '../../atoms/header-bars/dsmJS';
import RecurrenceBar from '../../atoms/header-bars/recurrence';
import SponsorBar from '../../atoms/header-bars/sponsor';
import Locati... |
src/NumInput.js | bsitruk/react-try | import React, { Component } from 'react';
export class NumInput extends Component {
static propTypes = {
min: React.PropTypes.number,
max: React.PropTypes.number,
step: React.PropTypes.number,
val: React.PropTypes.number,
label: React.PropTypes.string,
update: React.PropTypes.func.isRequired,... |
app/javascript/flavours/glitch/features/report/components/status_check_box.js | vahnj/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Toggle from 'react-toggle';
import noop from 'lodash/noop';
import StatusContent from 'flavours/glitch/components/status_content';
import { MediaGallery, Video } from 'flavours/glitch/util/a... |
node_modules/material-ui/src/styles/theme-decorator.js | Sporks/Doc-tor | import React from 'react';
export default (customTheme) => {
return function(Component) {
return React.createClass({
childContextTypes: {
muiTheme: React.PropTypes.object,
},
getChildContext() {
return {
muiTheme: customTheme,
};
},
render() {
... |
client/src/react/weather/Weather.js | charlesj/Apollo | import React from 'react'
import apolloServer from '../../services/apolloServer'
import { Container, } from '../_controls'
import Forecast from './Forecast'
import './Weather.css'
class Weather extends React.Component {
constructor(props) {
super(props)
this.state = {
data: null,
}
}
componen... |
src/template/AppDrawer.js | copygof/go-ayutthaya | import React from 'react';
import Drawer from 'material-ui/Drawer';
import Menu from './Menu'
export default class AppDrawer extends React.Component {
componentDidMount() {
let frameCount = 0;
const open = () => (frameCount++ > 0) ? this.props.onMounted() :
requestAnimationFrame(open);
re... |
src/icons/ErlenmeyerFlask.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class ErlenmeyerFlask extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M438.815,395.7L338.509,246.2c-12.8-20.3-19.009-44.4-19.009-70.2c0,0,0-73.5,0-93s12.592-33.25,15.009-42.083
... |
src/components/SignInUp.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import colors from '../constants/colors';
import Button from './Button';
import { debounce } from 'lodash';
import { isValidEmail, capitalize } from '../lib/utils';
import { defineMessages, injectIntl } from 'react-intl';
class SignInUp extends React.Compo... |
src/server.js | cjhdom/rskr | /**
* 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 path from 'path';
import express from 'express';... |
src/index.js | kennethaa/byggreal | // @flow
import './utils/firebase';
import React from 'react';
import { render } from 'react-dom';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import injectTapEventPlugi... |
packages/ringcentral-widgets-docs/src/app/pages/Components/IncomingCallPanel/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
src/Pagination.js | rapilabs/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import PaginationButton from './PaginationButton';
const Pagination = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
activePage: React.PropTypes.number,
items: React.PropTypes.number,... |
src/utils/format/index.js | thinktopography/reframe | import React from 'react'
import PropTypes from 'prop-types'
import _ from 'lodash'
import moment from 'moment'
import numeral from 'numeral'
class Format extends React.Component {
static propTypes = {
format: PropTypes.oneOfType([
PropTypes.element,
PropTypes.func,
PropTypes.string
]),
... |
src/Parser/Core/Modules/Items/Legion/TombOfSargeras/DeceiversGrandDesign.js | enragednuke/WoWAnalyzer | import React from 'react';
import Wrapper from 'common/Wrapper';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import ItemLink from 'common/ItemLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Comba... |
app/pages/terms/terms.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... |
src/svg-icons/image/hdr-strong.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrStrong = (props) => (
<SvgIcon {...props}>
<path d="M17 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zM5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 ... |
src/components/FooterBar/NextMedia.js | welovekpop/uwave-web-welovekpop.club | import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import { translate, Interpolate } from 'react-i18next';
import compose from 'recompose/compose';
import pure from 'recompose/pure';
import SongTitle from '../SongTitle';
import Eta from './Eta';
const NextMedia = ({
t,
clas... |
packages/fyndiq-component-modal/src/confirm.js | fyndiq/fyndiq-ui | import React from 'react'
import PropTypes from 'prop-types'
import Button from 'fyndiq-component-button'
import Modal from './modal'
import styles from '../confirm.css'
const Confirm = ({
open,
type,
title,
message,
icon,
validateButton,
cancelButton,
onValidate,
onCancel,
}) => (
<Modal
ope... |
src/components/utilities/icons/TwitterIcon.js | jackson-/colorforcode | import React from 'react'
import PropTypes from 'prop-types'
const Twitter = () => (
<svg className='twitter' x='0px' y='0px' width='30px' height='24px' viewBox='-4.98 -0.5 41.96 33' enableBackground='new -4.98 -0.5 41.96 33'>
<path d='M8.624,32c-4.403,0-8.807-1.205-12.683-3.614c-0.352-0.172-0.529-0.689-0.352-1.... |
app/components/Calls/Calls.js | mikeluz/flock | import React from 'react'
import axios from 'axios'
import {Link} from 'react-router'
import {
Table,
TableBody,
TableHeader,
TableHeaderColumn,
TableRow,
TableRowColumn
} from 'material-ui/Table';
import {RaisedButton} from 'material-ui'
var moment = require('moment');
class Calls extends React.Component ... |
src/components/article/HeaderTwo.js | hanyulo/twreporter-react | 'use strict'
import commonStyles from './Common.scss'
import classNames from 'classnames'
import React from 'react' // eslint-disable-next-line
// lodash
import get from 'lodash/get'
export const HeaderTwo = ({ content }) => {
return <h2 className={classNames(commonStyles['inner-block'],
'text-justify')} ... |
src/containers/App.js | Marmiz/code-tutorial | import React, { Component } from 'react';
import '../styles/App.css';
import Editor from './Editor'
import Data from '../lessons/LessonWrapper'
import Instructions from '../components/Instructions'
import { connect } from 'react-redux'
import { incrementLesson, decrementLesson} from '../actions/lesson-actions'
class ... |
src/FormText.js | reactstrap/reactstrap | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { mapToCssModules, tagPropType } from './utils';
const propTypes = {
children: PropTypes.node,
inline: PropTypes.bool,
tag: tagPropType,
color: PropTypes.string,
className: PropTypes.string,
cssModule... |
hw5/src/components/auth/landing.js | yusong-shen/comp531-web-development | /**
* Created by yusong on 10/20/16.
*/
import React from 'react'
import LoginForm from './login'
import RegisterForm from './register'
let navItems = []
export const Landing = () => (
// This is the Profile view.
<div>
<div className="text-center">
<img src='/img/rice-logo.jpg' width={... |
information/blendle-frontend-react-source/app/modules/item/routes.js | BramscoChill/BlendleParser | /* eslint-disable no-param-reassign */
import React from 'react';
import { history } from 'byebye';
import AuthStore from 'stores/AuthStore';
import ItemActions from 'actions/ItemActions';
import features from 'config/features';
import { asyncRoute } from 'helpers/routerHelpers';
import { replaceLastPath, isFamilyPath ... |
ui/src/App.js | erlanglab/erlangpl | // @flow
import React from 'react';
import { Route, Redirect } from 'react-router-dom';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import './App.css';
import core from './core';
const { Navigation, Footer } = core.components;
// plugins
import eplDashboard from './p... |
lib/main.js | blittle/jspm-test | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.js';
ReactDOM.render(<App />, document.getElementById('app'));
|
views/invocation.js | littlecodeshop/black-screen | import React from 'react';
import Prompt from './prompt';
export default React.createClass({
componentWillMount() {
this.props.invocation
.on('data', _ => this.setState({canBeDecorated: this.props.invocation.canBeDecorated()}))
.on('status', status => this.setState({status: status})... |
app/javascript/mastodon/features/generic_not_found/index.js | NS-Kazuki/mastodon | import React from 'react';
import Column from '../ui/components/column';
import MissingIndicator from '../../components/missing_indicator';
const GenericNotFound = () => (
<Column>
<MissingIndicator />
</Column>
);
export default GenericNotFound;
|
public/assets/scripts/components/resources/common/order.js | luisfbmelo/reda | import React from 'react';
import { Component } from 'react';
export default class ResourcesOrdering extends Component {
constructor(props){
super(props);
this.onOrderChange = this.onOrderChange.bind(this);
this.state = {
value: "recent"
}
}
onOrderChange(e){
this.setState({value: e.target.value});... |
examples/js/column-filter/number-filter-with-default-value.js | neelvadgama-hailo/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,
... |
app/components/ToggleOption/index.js | andyzeli/Bil | /**
*
* ToggleOption
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, intlShape } from 'react-intl';
const ToggleOption = ({ value, message, intl }) => (
<option value={value}>
{message ? intl.formatMessage(message) : value}
</option>
);
ToggleOption.propTypes = {
va... |
docs/src/app/components/pages/components/Menu/Page.js | hai-cea/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 menuReadmeText from './README';
import MenuExampleSimple from './ExampleS... |
packages/node_modules/@ciscospark/react-component-activity-item/src/index.js | bzang/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import ActivityPost from '@ciscospark/react-component-activity-post';
import ActivityShareFiles from '@ciscospark/react-component-activity-share-files';
import ActivitySystemMessage, {SYSTEM_MESSAGE_VERBS} from '@ciscos... |
src/svg-icons/content/content-copy.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentContentCopy = (props) => (
<SvgIcon {...props}>
<path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/>
</SvgIcon>
);... |
examples/quick-start/app.js | nikitka/react-redux-form | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
// We'll create this in Step 5.
import store from './store.js';
// We'll create this in Step 6.
import UserForm from './components/user-form.js';
class App extends React.Component {
render() {
return (
<... |
examples/with-redux/pages/other.js | kevmannn/next.js | import React from 'react'
import { initStore, startClock } from '../store'
import withRedux from 'next-redux-wrapper'
import Page from '../components/Page'
class Counter extends React.Component {
static getInitialProps ({ store, isServer }) {
store.dispatch({ type: 'TICK', light: !isServer, ts: Date.now() })
... |
client/routes/auth.js | byoigres/webpack-hapi-react-skeleton | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from '../containers/app';
import MainLayout from '../layouts/MainLayout';
import AuthView from '../views/AuthView';
export default (
<Route path='/auth' component={MainLayout}>
<IndexRoute component={AuthView} />
</Route>
)... |
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/MediaLeft.js | OpenKGB/webcode | 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 ... |
frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientPresetMenuItem.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import MenuItem from 'Components/Menu/MenuItem';
class AddDownloadClientPresetMenuItem extends Component {
//
// Listeners
onPress = () => {
const {
name,
implementation
} = this.props;
this.props.onPress({
... |
src/view/components/leaderboards/AllTimeLeaderboard.js | Danny-Robinson/bt-bingo | /**
* Created by 611218504 on 05/04/2017.
*/
import React from 'react';
import LeaderScore from './LeaderScore';
class AllTimeLeaderboard extends React.Component {
constructor(props) {
super(props);
this.state = {
global_winners: []
};
this.refreshLeaderboard = this... |
app/javascript/mastodon/features/ui/components/boost_modal.js | nonoz/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from '../../../components/button';
import StatusContent from '../../../components/status_content';
import Av... |
js/components/card/index.js | YeisonGomez/RNAmanda |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Text, Left, Body, Right, List, ListItem } from 'native-base';
import { Actions } from 'react-native-router-flux';
... |
client/src/components/InvoiceDetails.js | misha-slyusarev/invoices | import React, { Component } from 'react';
import { Grid, Form, Segment } from 'semantic-ui-react'
import RecipientInfo from './RecipientInfo'
import DatePicker from 'react-datepicker';
import moment from 'moment';
import 'react-datepicker/dist/react-datepicker.css';
export default class InvoiceDetails extends Compone... |
src/svg-icons/image/filter-center-focus.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterCenterFocus = (props) => (
<SvgIcon {...props}>
<path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 9... |
pootle/static/js/admin/general/components/ContentEditor.js | dwaynebailey/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import CodeMirror from 'compon... |
web/src/js/components/disciplina/novo.js | helderfarias/ges | 'use strict';
import React from 'react';
import { Link, History } from 'react-router';
import DisciplinaAction from '../../actions/disciplina_action';
import DisciplinaStore from '../../stores/disciplina_store';
import Growl from '../comuns/alert';
export default React.createClass({
mixins: [ History ],
hand... |
src/svg-icons/device/widgets.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceWidgets = (props) => (
<SvgIcon {...props}>
<path d="M13 13v8h8v-8h-8zM3 21h8v-8H3v8zM3 3v8h8V3H3zm13.66-1.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65z"/>
</SvgIcon>
);
DeviceWidgets = pure(DeviceWidgets);
... |
src/admin/client/modules/pages/list/components/headButtons.js | cezerin/cezerin | import React from 'react';
import { Link } from 'react-router-dom';
import messages from 'lib/text';
import FontIcon from 'material-ui/FontIcon';
import IconButton from 'material-ui/IconButton';
const Buttons = () => (
<span>
<Link to="/admin/pages/add">
<IconButton
touch={true}
tooltipPosition="bottom-l... |
src/svg-icons/av/forward-10.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvForward10 = (props) => (
<SvgIcon {...props}>
<path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.8 3H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0... |
gmatgamefrontend/src/elements/Dropdown.js | decodeMERV/GMATgameFE | import React from 'react';
import './Dropdown.css';
export default class Dropdown extends React.Component {
createOption(item) {
var str = '';
if (this.props.textBefore) {
str = str + this.props.textBefore;
}
if(this.props.showItem){
str = str + item;
}
if (this.props.textAfter... |
blueprints/component/files/src/components/__name__/__name__.js | hack-duke/hackduke-portal | import React from 'react'
import classes from './<%= pascalEntityName %>.scss'
export const <%= pascalEntityName %> = () => (
<div className={classes['<%= pascalEntityName %>']}>
<h1><%= pascalEntityName %></h1>
</div>
)
export default <%= pascalEntityName %>
|
src/components/misc/global-search.js | scholtzm/arnold | import React, { Component } from 'react';
import { Search } from 'semantic-ui-react';
import MovieStore from '../../stores/movie-store.js';
import TvShowStore from '../../stores/tvshow-store.js';
import AlbumStore from '../../stores/album-store.js';
class GlobalSearch extends Component {
state = {
searchTerm: '... |
docs/src/examples/elements/Icon/Variations/IconExampleBordered.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Icon } from 'semantic-ui-react'
const IconExampleBordered = () => (
<div>
<Icon bordered name='users' />
<Icon bordered color='teal' name='users' />
<Icon bordered inverted color='black' name='users' />
<Icon bordered inverted color='teal' name='users' />
</div>
)... |
src/svg-icons/notification/drive-eta.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDriveEta = (props) => (
<SvgIcon {...props}>
<path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 ... |
projects/react-antui/src/page/operate.js | jackkunfu/try | import React from 'react';
import Utils from './utils'
// 尝试高阶组件处理共同逻辑,传参Comp是新组件(首字母需要大写,代表组件class), baseConfig是新组件初始配置
export const opComponent = (Comp, baseConfig) => {
return class extends Utils {
constructor(props) {
super(props)
this.state = {
curEditing... |
support/ReactSample/www/js/components/PageHeader.js | generatron/GeneratronPublic | import React from 'react';
import moment from 'moment';
import {Icon, ButtonIcon} from "./Icons";
import Dropdown from "./Dropdown";
import {DropdownItem} from "./Dropdown";
export let DownButtonDropdown = React.createClass({
getInitialState() {
return {open:false, label:""};
},
componentWillRe... |
node_modules/rc-select/es/SelectTrigger.js | prodigalyijun/demo-by-antd | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import Trigger from 'rc-trigger';
import React from 'react';
import PropTypes from 'prop-types';
import createCl... |
src/interface/others/StatisticsListBox.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { TooltipElement } from 'common/Tooltip';
import './StatisticBox.css';
import STATISTIC_CATEGORY from './STATISTIC_CATEGORY';
export { default as STATISTIC_ORDER } from './STATISTIC_ORDER';
export { default as STATISTIC_CATEGORY } from './STATISTI... |
react/reactRedux/redux-master/examples/real-world/src/containers/Root.dev.js | huxinmin/PracticeMakesPerfect | import React from 'react'
import PropTypes from 'prop-types'
import { Provider } from 'react-redux'
import routes from '../routes'
import DevTools from './DevTools'
import { Router } from 'react-router'
const Root = ({ store, history }) => (
<Provider store={store}>
<div>
<Router history={history} routes={... |
node_modules/rebass/src/Drawer.js | HasanSa/hackathon |
import React from 'react'
import Base from './Base'
import config from './config'
/**
* An off-canvas drawer component
*/
const Drawer = ({
open,
size,
position,
onDismiss,
...props
}, { rebass }) => {
const { scale, zIndex } = { ...config, ...rebass }
const placements = {
top: {
top: 0,
... |
app/javascript/mastodon/components/relative_timestamp.js | Nyoho/mastodon | import React from 'react';
import { injectIntl, defineMessages } from 'react-intl';
import PropTypes from 'prop-types';
const messages = defineMessages({
today: { id: 'relative_time.today', defaultMessage: 'today' },
just_now: { id: 'relative_time.just_now', defaultMessage: 'now' },
seconds: { id: 'relative_time... |
src/svg-icons/content/move-to-inbox.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentMoveToInbox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3... |
frontend/component/Header.js | tigerxjtu/njs | import React from 'react';
import { Link } from 'react-router';
import {loginUser,logout, notificationCount} from '../lib/client';
export default class Header extends React.Component{
constructor(props){
super(props);
this.state={};
}
componentDidMount(){
loginUser()
.then(user => this.setState({user}))
... |
app/components/ProgressBar/index.js | koofka/singleproperty_redux | import React from 'react';
import PropTypes from 'prop-types';
import ProgressBar from './ProgressBar';
function withProgressBar(WrappedComponent) {
class AppWithProgressBar extends React.Component {
constructor(props) {
super(props);
this.state = {
progress: -1,
loadedRoutes: props.l... |
src/components/topic/platforms/PlatformDetailsInfo.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl, FormattedMessage } from 'react-intl';
import OpenWebMediaItem from '../../common/OpenWebMediaItem';
import { PLATFORM_OPEN_WEB, PLATFORM_REDDIT, PLATFORM_TWITTER, CRIMSON_HEXAGON_SOURCE, MEDIA_CLOUD_SOURCE } from '../../../lib/platformT... |
src/components/common/navigation/Pagination.js | ESTEBANMURUZABAL/my-ecommerce-template | /**
* Imports
*/
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router';
// Flux
import IntlStore from '../../../stores/Application/IntlStore';
// Translation data for this component
import intlData from './Pagination.intl';
/**
* Component
*/
class Pagination e... |
components/ViroPortal.js | viromedia/viro | /**
* Copyright (c) 2017-present, Viro Media, 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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provid... |
client/app/scripts/components/time-travel-wrapper.js | alban/scope | import React from 'react';
import moment from 'moment';
import styled from 'styled-components';
import { connect } from 'react-redux';
import { TimeTravel } from 'weaveworks-ui-components';
import { trackAnalyticsEvent } from '../utils/tracking-utils';
import { jumpToTime } from '../actions/app-actions';
const TimeT... |
src/components/Actions/EditButton.js | fedebertolini/json-editor | import React, { Component } from 'react';
import { Icon } from 'semantic-ui-react';
import { connect } from 'react-redux';
import { changeData } from '../../store/actions/edited';
import { selectData } from '../../store/selectors/edited';
import ValueEditorModal from '../ValueEditorModal';
const ModalTrigger = (props... |
config/componentData.js | arnarleifs/ps-react-arnar | module.exports = [{"name":"EyeIcon","description":"SVG Eye Icon","code":"import React from 'react';\r\n\r\n/** SVG Eye Icon */\r\nfunction EyeIcon() {\r\n // Attribution: Fabián Alexis at https://commons.wikimedia.org/wiki/File:Antu_view-preview.svg\r\n return (\r\n <svg width=\"16\" height=\"16\" xmlns=\"http://w... |
analysis/warlockdemonology/src/modules/pets/PetTimelineTab/index.js | anom0ly/WoWAnalyzer | import Analyzer from 'parser/core/Analyzer';
import DeathTracker from 'parser/shared/modules/DeathTracker';
import SpellHistory from 'parser/shared/modules/SpellHistory';
import React from 'react';
import DemoPets from '../DemoPets';
import TabComponent from './TabComponent';
class PetTimelineTab extends Analyzer {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.