path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
lib/src/detailcard.js | SerendpityZOEY/Fixr-RelevantCodeSearch | /**
* Created by yue on 2/9/17.
*/
import React from 'react';
import {List, ListItem, NestedList} from 'material-ui/List';
import {BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend} from 'recharts';
import FlatButton from 'material-ui/FlatButton';
import FontIcon from 'material-ui/FontIcon';
import Lines fr... |
packages/veritone-react-common/src/components/NavigationSideBar/SectionTree.js | veritone/veritone-sdk | import React from 'react';
import cx from 'classnames';
import { noop, initial, get, map, kebabCase } from 'lodash';
import {
string,
arrayOf,
shape,
func,
element,
bool,
objectOf,
any
} from 'prop-types';
import Button from '@material-ui/core/Button';
import ArrowBackIcon from '@material-ui/icons/Arrow... |
src/common/components/Heading.js | chad099/react-native-boilerplate | // @flow
import type { TextProps } from './Text';
import type { Theme } from '../themes/types';
import Text from './Text';
import React from 'react';
type HeadingContext = {
theme: Theme,
};
const Heading = (props: TextProps, { theme }: HeadingContext) => {
const {
bold = true,
fontFamily = theme.heading.... |
sb-admin-seed-react/src/vendor/recharts/demo/component/AreaChart.js | Gigasz/tropical-bears | import React from 'react';
import { changeNumberOfData } from './utils';
import { AreaChart, Area, XAxis, YAxis, Tooltip, CartesianGrid, Brush,
ReferenceArea, ReferenceLine, ReferenceDot, ResponsiveContainer } from 'recharts';
const data = [
{ name: 'Page A', uv: 4000, pv: 2400, amt: 2400 },
{ name: 'Page B', uv... |
src/components/icons/OutlinedFlagIcon.js | InsideSalesOfficial/insidesales-components | import React from 'react';
const OutlinedFlagIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24">
{props.title && <title>{props.title}</title>}
<path d="M14 6l-1-2H5v17h2v-7h5l1 2h7V6h-6zm4 8h-4l-1-2H7V6h5l1 2h5v6z" />
<path fill="none" d="M0 0h24v24... |
examples/withReactRouterReduxIntl/client/containers/index.js | Canner/coren | import React from 'react';
import ReactDOM from 'react-dom';
import Index from '../components/index';
ReactDOM.render(
<Index/>
, document.getElementById('root'));
if(module.hot) {
module.hot.accept();
}
|
client/src/app/admin/panel/settings/admin-panel-system-preferences.js | ivandiazwm/opensupports | import React from 'react';
import _ from 'lodash';
import store from 'app/store';
import ConfigActions from 'actions/config-actions';
import API from 'lib-app/api-call';
import i18n from 'lib-app/i18n';
import LanguageSelector from 'app-components/language-selector';
import ToggleButton from 'app-components/toggle-but... |
src/SparklinesSpots.js | Jonekee/react-sparklines | import React from 'react';
export default class SparklinesSpots extends React.Component {
static propTypes = {
size: React.PropTypes.number,
style: React.PropTypes.object,
spotColors: React.PropTypes.object
};
static defaultProps = {
size: 2,
spotColors: {
... |
cms/react-static/src/containers/Post.js | fishjar/gabe-study-notes | import React from 'react'
import { withRouteData, Link } from 'react-static'
//
export default withRouteData(({ post }) => (
<div>
<Link to="/blog/">{'<'} Back</Link>
<br />
<h3>{post.title}</h3>
<p>{post.body}</p>
</div>
))
|
app/components/Hello.js | designjockey/reactor | import React from 'react';
class Hello extends React.Component {
render() {
return (
<h1 ref={(node) => { this.heading = node; }}>Hello World</h1>
);
}
}
export default Hello;
|
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js | xiaotaijun/actor-platform | import _ from 'lodash';
import React from 'react';
import mixpanel from 'utils/Mixpanel';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import MyProfileActions from 'actions/MyProfileActions';
import LoginActionCreators from 'action... |
app/components/RollPage.js | mzanini/DeeMemory | import React from 'react'
import Roll from './Roll'
const RollPage = () => (
<Roll/>
)
export default RollPage
|
src/js/pages/PricingTable.js | hadnazzar/ModernBusinessBootstrap-ReactComponent | import React from 'react';
import {Link} from "react-router";
import Subheading from '../components/Subheading';
export default class Layout extends React.Component {
constructor() {
super();
this.state = {
title:"Welcome to Momoware!",
};
}
changeTitle(title){
this.setSt... |
app/m_components/Copyright.js | kongchun/BigData-Web | import React from 'react';
import {
Link
} from 'react-router';
class Copyright extends React.Component {
render() {
return (
<div className="copyright">
<div className="container">
<div className="row">
<div className="col-sm-12">
<span>Copyright © <a... |
app/javascript/mastodon/features/followers/index.js | mhffdq/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import {
fetchAccount,
fetchFollowers,
expandFollowers,
} from '../../actions/account... |
app/react-icons/fa/pie-chart.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaPieChart extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m17.6 19.9l12.2 12.2q-2.3 2.4-5.5 3.7t-6.7 1.3q-4.6 0-8.6-2.3t-6.2-6.2-2.3-... |
src/server.js | labreaks/ep-web-app | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
const server = global.... |
src/components/Races/SelectYearComponent.js | chiefwhitecloud/running-man-frontend | import React from 'react';
import PropTypes from 'prop-types';
const SelectYearComponent = ({years}) => {
return <div>
{years.map(function(year){
return <div>{year}</div>
})}
</div>;
};
SelectYearComponent.propTypes = { years: PropTypes.array };
export default SelectYearComponent;
|
src/components/Rating/index.js | xenotime-india/CV | import React from 'react'
class Rating extends React.Component {
render() {
const { skillName, rating } = this.props
const userRating = []
for (let i = 0; i < rating; i++) {
userRating.push(
<i className="fa fa-circle fa-2x" aria-hidden="true" key={i} />
)
}
while (userRating.... |
src/mui-themeable.js | tyfoo/material-ui | import React from 'react';
import DefaultRawTheme from './styles/raw-themes/light-raw-theme';
import ThemeManager from './styles/theme-manager';
function getDisplayName(WrappedComponent) {
return WrappedComponent.displayName || WrappedComponent.name || 'Component';
}
export default function muiThemeable(WrappedComp... |
src/index.js | Ibrasau/socketChatExample | import React, { Component } from 'react';
import { render } from 'react-dom';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import Chat from './components/Chat.js';
import reducer from './reducers/rootReducer';
const store = createStore(reducer);
render(
<Provider store={store}>
<... |
src/components/tabBar.js | Seeingu/borrow-book | /*
底部栏
*/
import React from 'react';
import {
StyleSheet,
Text,
View,
Image,
TouchableOpacity,
} from 'react-native';
import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome';
import Icon from 'react-native-vector-icons/Ionicons';
import { ComponentStyles, CommonStyles } from '../assets/styles';... |
app/components/Keywords.js | alexindigo/ndash | import React, { Component } from 'react';
import { Text, View } from 'react-native';
import { combine } from '../helpers/styles';
export default class Keywords extends Component {
renderKeywords() {
if (!this.props.keywords) {
return null;
}
return React.Children.toArray(this.props.keywords).map... |
docs/src/components/nav.js | mcanthony/nuclear-js | import React from 'react'
import { BASE_URL } from '../globals'
function urlize(uri) {
return BASE_URL + uri
}
export default React.createClass({
render() {
const logo = this.props.includeLogo
? <a href={BASE_URL} className="brand-logo">NuclearJS</a>
: null
const homeLink = this.props.includeL... |
app/javascript/mastodon/features/account_gallery/index.js | masarakki/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { expandAccountMediaTimeline } from '../../actions/timelines';
import LoadingIndicator from '../... |
src/svg-icons/action/settings-remote.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsRemote = (props) => (
<SvgIcon {...props}>
<path d="M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1zm-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41... |
src/components/Code.js | doug2k1/webpack-generator | // @flow
/* eslint react/no-danger: "off" */
import React from 'react'
import { js_beautify as beautify } from 'js-beautify/js/lib/beautify'
// import only highlight.js core and javascript language for smaller bundle size
import hljs from 'highlight.js/lib/highlight'
import hljsJS from 'highlight.js/lib/languages/javas... |
src/svg-icons/action/eject.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionEject = (props) => (
<SvgIcon {...props}>
<path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"/>
</SvgIcon>
);
ActionEject = pure(ActionEject);
ActionEject.displayName = 'ActionEject';
ActionEject.muiName = 'Svg... |
wegas-app/src/main/node/wegas-react-form/src/Script/singleStatement.js | Heigvd/Wegas | import PropTypes from 'prop-types';
import React from 'react';
import { types } from 'recast';
/**
* HOC single statement builder
*/
function singleStatement(Comp) {
/**
* Component
* @param {{code:Object[], onChange:(AST:Object[])=>void}} props Component's props
*/
function SingleStatement(pr... |
imports/ui/pages/ViewResources.js | lizihan021/SAA-Website | import React from 'react';
import NotFound from './NotFound';
import PropTypes from 'prop-types';
export default class ViewResources extends React.Component {
render() {
return (
<div className="ViewResources">
<h2 className="page-header">{this.props.params.id}</h2>
<embed src={ `/files/${this.pro... |
index.js | Prashant31/redux-blog | import React from 'react'
import { render } from 'react-dom'
import {initialize} from './utils/Root'
var {provider} = initialize();
render(provider, document.getElementById('root'));
|
src/TreeSelect/TreeSelect.stories.js | ctco/rosemary-ui | import React from 'react';
import { storiesOf, action } from '@storybook/react';
import noop from 'lodash/noop';
import { TreeSelect, SingleTreeSelect, TreeWithInactiveSwitch } from './TreeSelect';
let nextId = 0;
const makeOption = (displayString, treeNodeHash, leaf, active = true, id = null) => {
nextId++;
... |
src/components/App/index.js | LamouchiMS/adintel | import React from 'react';
import injectTapEventPlugin from 'react-tap-event-plugin';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import {fade} from 'material-ui/utils/colorManipulator';
import {
cyan700,
grey600,
yellowA100,
yell... |
src/BottomNavigation/BottomNavigation.js | AndriusBil/material-ui | // @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = (theme: Object) => ({
root: {
display: 'flex',
justifyContent: 'center',
height: 56,
backgroundColor: theme.palette.b... |
src/components/Title.js | mirego/mirego-open-web | import React from 'react';
import styled from '@emotion/styled';
const Content = styled.div`
padding: 0 10px;
margin: 0 0 30px;
text-align: center;
color: #666;
@media (prefers-color-scheme: dark) {
& {
color: #aaa;
}
}
`;
const Title = styled.h2`
margin: 0 0 5px;
text-align: center;
... |
app/components/DropdownFontSelectorMenu.js | googlefonts/korean | import React, { Component } from 'react';
import { FONTS } from '../constants/defaults';
import { connect } from 'react-redux';
import { changeDescFontDropdownOpened, changeCurrentDescFont } from '../actions';
import onClickOutside from "react-onclickoutside";
import _ from 'lodash';
const Fragment = React.Fragment;
... |
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch03/03_02/finish/src/components/SkiDayCount.js | yevheniyc/Autodidact | import React from 'react'
import '../stylesheets/ui.scss'
export const SkiDayCount = React.createClass({
render() {
return (
<div className="ski-day-count">
<div className="total-days">
<span>5 days</span>
</div>
<div className="powder-days">
<span>2 days</span>
</div>
<div classNam... |
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleDeviceVisibility.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Grid, Segment } from 'semantic-ui-react'
const GridExampleDeviceVisibility = () => (
<Grid>
<Grid.Row columns={2} only='large screen'>
<Grid.Column>
<Segment>Large Screen</Segment>
</Grid.Column>
<Grid.Column>
<Segment>Large Screen</Segment>
... |
examples/tree-view/src/containers/Node.js | roth1002/redux | import React from 'react'
import { Component } from 'react'
import { connect } from 'react-redux'
import * as actions from '../actions'
export class Node extends Component {
handleIncrementClick = () => {
const { increment, id } = this.props
increment(id)
}
handleAddChildClick = e => {
e.preventDefa... |
actor-apps/app-web/src/app/components/activity/UserProfile.react.js | jamesbond12/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import classnames from 'classnames';
import ActorClient from 'utils/ActorClient';
import confirm from 'utils/con... |
src/components/AdminSidebar.js | PickaxeCMS/pickaxecms | import React, { Component } from 'react';
import { connect } from 'react-redux'
import MediaQuery from 'react-responsive';
import { Sidebar, Menu, Image, Dropdown, Icon, Segment, Form, Button, Input, Header } from 'semantic-ui-react'
class AdminSidebar extends Component {
constructor(props) {
super(props);
... |
app/javascript/mastodon/features/ui/components/column.js | verniy6462/mastodon | import React from 'react';
import ColumnHeader from './column_header';
import PropTypes from 'prop-types';
import { debounce } from 'lodash';
import { scrollTop } from '../../../scroll';
import { isMobile } from '../../../is_mobile';
export default class Column extends React.PureComponent {
static propTypes = {
... |
addons/info/src/components/types/ObjectOf.js | rhalff/storybook | import React from 'react';
import PrettyPropType from './PrettyPropType';
import { TypeInfo, getPropTypes } from './proptypes';
const ObjectOf = ({ propType }) => (
<span>
{'{[<key>]: '}
<PrettyPropType propType={getPropTypes(propType)} />
{'}'}
</span>
);
ObjectOf.propTypes = {
propType: TypeInfo.... |
src/applications/financial-status-report/pages/income/spouse/spouseInfo.js | department-of-veterans-affairs/vets-website | import React from 'react';
import AdditionalInfo from '@department-of-veterans-affairs/component-library/AdditionalInfo';
const MaritalStatusInfo = (
<AdditionalInfo triggerText="Why does my marital status matter?">
<p>
We want to make sure we understand your household’s financial situation.
</p>
<... |
modules/gui/src/widget/form/input.js | openforis/sepal | import {Input, Textarea} from 'widget/input'
import {Subject, debounceTime, distinctUntilChanged} from 'rxjs'
import {compose} from 'compose'
import {getErrorMessage} from 'widget/form/error'
import {withFormContext} from 'widget/form/context'
import PropTypes from 'prop-types'
import React from 'react'
import withSubs... |
samples/06.recomposing-ui/d.plain-ui/src/CardActionButton.js | billba/botchat | import React from 'react';
import ImBackButton from './ImBackButton';
import MessageBackButton from './MessageBackButton';
import PostBackButton from './PostBackButton';
// "cardAction" could be either, "imBack", "messageBack", or "postBack".
export default ({ cardAction }) => {
switch (cardAction.type) {
case ... |
src/svg-icons/image/crop-original.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropOriginal = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-5.04-6.71l-2.75 3.54-1.96-2.36L6.5 17h11l-3.54-4.71z"... |
example/pages/searchbar/index.js | woshisbb43/coinMessageWechat | import React from 'react';
import Page from '../../component/page';
import SampleData from './nameDB';
import {
//main component
SearchBar,
//for display data
Panel,
PanelHeader,
PanelBody,
PanelFooter,
MediaBox,
MediaBoxHeader,
MediaBoxBody,
MediaBoxTitle,
MediaBoxDescr... |
frontend/app_v2/src/common/icons/ForwardArrow.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
/**
* @summary ForwardArrow
* @component
*
* @param {object} props
*
* @returns {node} jsx markup
*/
function ForwardArrow({ styling }) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className={styling}>
<title>For... |
cerberus-dashboard/src/components/LoginUserForm/LoginUserForm.js | Nike-Inc/cerberus | /*
* Copyright (c) 2020 Nike, inc.
*
* 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 ... |
src/pages/User/components/PullRequests/UserShare.js | jenkoian/hacktoberfest-checker | import React from 'react';
const UserShare = () => {
Tw();
Fb();
return <div id="fb-root"></div>;
};
function Tw() {
window.twttr = (function (d, s, id) {
var js,
fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return t;
js = d.createElement(s);
... |
src/components/list_items.js | blanck-space/reacTube | import React from 'react';
const VListItem = (props) => {
return(
<li onClick={()=>props.onItemClick(props.video)} className="list-group-item">
<div className="video-list media">
<div className="media-left">
<img className="media-object" src={props.video.snippet.thumbnails.default.url} />... |
app/static/index.js | Murdius/GW2Snapshot | import React from 'react';
import { render } from 'react-dom';
import { createStore, applyMiddleware, compose } from 'redux';
import { Provider } from 'react-redux';
import App from './components/App.jsx';
import createLogger from 'redux-logger';
import thunkMiddleware from 'redux-thunk';
import reducer from './reducer... |
packages/metadata-react/src/TabularSection/TabularSection.js | oknosoft/metadata.js | import React from 'react';
import PropTypes from 'prop-types';
import MComponent from '../common/MComponent';
import TabularSectionToolbar from './TabularSectionToolbar';
import SchemeSettingsTabs from '../SchemeSettings/SchemeSettingsTabs';
import LoadingMessage from '../DumbLoader/LoadingMessage';
import ReactDataG... |
packages/material-ui-icons/src/DoNotDisturbAlt.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zM4 12c0-4.4 3.6-8 8-8 1.8 0 3.5.6 4.9 1.7L5.7 16.9C4.6 15.5 4 13.8 4 12zm8 8c-1.8 0-3.5-.6-4.9-1.7L18.3 7.1C19.4 8.5 20 10.2 20 12c0 4.4... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestParameters.js | ro-savage/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load({ id = 0, ...rest }) {
return [
{ id:... |
src/svg-icons/image/straighten.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageStraighten = (props) => (
<SvgIcon {...props}>
<path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z"/>
</SvgIcon>
);
ImageStr... |
app/admin/actions/AddSkill.js | in42/internship-portal | import React, { Component } from 'react';
import axios from 'axios';
import { Form, Button, Divider } from 'semantic-ui-react';
import PropTypes from 'prop-types';
import Auth from '../../auth/modules/Auth';
const addSkill = skill => axios.post('/api/admin/add-skills', skill, {
headers: {
Authorization: `bearer ... |
src/index.js | RUTH2013/gallery-by-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
src/svg-icons/device/add-alarm.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAddAlarm = (props) => (
<SvgIcon {...props}>
<path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.... |
frontend/src/login.js | rarellano/socializa | import React from 'react';
import { hashHistory, Link } from 'react-router'
import $ from 'jquery';
import API from './api';
import { login } from './auth';
import { translate, Interpolate } from 'react-i18next';
import i18n from './i18n';
class Login extends React.Component {
constructor(props) {
super... |
client/modules/App/components/Footer/Footer.js | ArthurGerbelot/keystamp-mern | import React from 'react';
import { FormattedMessage } from 'react-intl';
// Import Style
import styles from './Footer.css';
// Import Images
import bg from '../../header-bk.png';
export function Footer() {
return (
<div style={{ background: `#FFF url(${bg}) center` }} className={styles.footer}>
<p>©... |
docs/app/Examples/elements/Header/Variations/HeaderBlockExample.js | jamiehill/stardust | import React from 'react'
import { Header } from 'stardust'
const HeaderBlockExample = () => (
<Header as='h3' block>
Block Header
</Header>
)
export default HeaderBlockExample
|
analysis/rogueassassination/src/modules/features/Checklist/Module.js | yajinni/WoWAnalyzer | import { ComboPointDetails, EnergyCapTracker, EnergyDetails } from '@wowanalyzer/rogue';
import React from 'react';
import BaseChecklist from 'parser/shared/modules/features/Checklist/Module';
import CastEfficiency from 'parser/shared/modules/CastEfficiency';
import Combatants from 'parser/shared/modules/Combatants';... |
client/src/pages/Product.js | ccwukong/lfcommerce-react | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Breadcrumb, BreadcrumbItem, Button, Row, Col } from 'reactstrap';
import { withRouter } from 'react-router-dom';
import jwt from 'jsonwebtoken';
import { FormattedMessage } from 'react-intl';
import ProductForm from './product/Produc... |
src/views/auth/index.js | foysalit/react-mcq | import React, { Component } from 'react';
import AuthSignin from './signin';
import AuthSignup from './signup';
import AuthStore from '../../stores/auth';
import AppActions from '../../actions/app';
import { Paper } from 'material-ui';
export class Auth extends Component {
constructor(props) {
super(props);
}
_a... |
client/routes.js | jozecarlos/bloodonors | /* eslint-disable global-require */
import React from 'react';
import { Route } from 'react-router';
import Container from './modules/home/';
// require.ensure polyfill for node
if (typeof require.ensure !== 'function') {
require.ensure = function requireModule(deps, callback) {
callback(require);
};
}
/* Wor... |
app/javascript/mastodon/components/load_more.js | mosaxiv/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
export default class LoadMore extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func,
disabled: PropTypes.bool,
visible: PropTypes.bool,
}
static defaultProps = {
vi... |
src/svg-icons/image/wb-auto.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageWbAuto = (props) => (
<SvgIcon {...props}>
<path d="M6.85 12.65h2.3L8 9l-1.15 3.65zM22 7l-1.2 6.29L19.3 7h-1.6l-1.49 6.29L15 7h-.76C12.77 5.17 10.53 4 8 4c-4.42 0-8 3.58-8 8s3.58 8 8 8c3.13 0 5.84-1.81 7.1... |
src/parser/monk/windwalker/modules/talents/Serenity.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Statistic from 'interface/statistics/Statistic';
import { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import BoringSpellValueText from 'interface/statistics/components/BoringSpellValueText/index';
import SPELLS from 'common/SPELLS'... |
node_modules/react-native-maps/lib/components/MapPolygon.js | RahulDesai92/PHR | import PropTypes from 'prop-types';
import React from 'react';
import {
ViewPropTypes,
} from 'react-native';
import decorateMapComponent, {
USES_DEFAULT_IMPLEMENTATION,
SUPPORTED,
} from './decorateMapComponent';
const propTypes = {
...ViewPropTypes,
/**
* An array of coordinates to describe the polygon... |
client/extensions/woocommerce/app/products/product-create.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { head, isNumber } from 'lodash';
import { localize } from 'i18n-calypso';
import page from 'page';
/**
* Internal ... |
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js | Maxwelloff/react-football | import _transformLib from 'transform-lib';
const _components = {
Foo: {
displayName: 'Foo'
}
};
const _transformLib2 = _transformLib({
filename: '%FIXTURE_PATH%',
components: _components,
locals: [],
imports: []
});
function _wrapComponent(id) {
return function (Component) {
return _transformLib... |
resources/js/components/Team/MemberComponent.js | Stasgar/BugWall_Visual_Bugtracker | import React, { Component } from 'react';
import Ability from './AbilityComponent';
class Member extends React.Component {
constructor(props) {
super(props);
this.props = props;
this.api = props.api;
}
render() {
return (
<tr><td>
<a href={this.p... |
packages/components/src/ResourceList/Toolbar/StateFilter/StateFilter.component.js | Talend/ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withTranslation } from 'react-i18next';
import ActionIconToggle from '../../../Actions/ActionIconToggle';
import I18N_DOMAIN_COMPONENTS from '../../../constants';
import getDefaultT from '../../../translate';
i... |
script/js/react/material-ui/src/demo/hello/hello.js | joshuazhan/arsenal4j | import React from 'react';
import {render} from 'react-dom';
render(
<h1>Hello, world!</h1>,
document.getElementById('content')
); |
carbon-page/stories/task/index.js | ShotaOd/dabunt | import React, { Component } from 'react';
import { storiesOf, action } from '@kadira/storybook';
import cardStory from './card'
const story = storiesOf('Task', module);
cardStory(story); |
node_modules/react-bootstrap/es/InputGroupAddon.js | GregSantulli/react-drum-sequencer | 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 ... |
blueocean-material-icons/src/js/components/svg-icons/content/content-copy.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const 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>
);
ContentContentCopy.displayName =... |
app/imports/client/Pages/Home/index.js | FractalFlows/Emergence | /*
* Built by Astrocoders
* @flow
*/
// Modules
import React from 'react'
import styled from 'styled-components'
import {
FlatButton,
Paper,
TextField,
RaisedButton,
} from 'material-ui'
import {
white,
cyan400,
grey300,
grey400,
grey700,
grey800,
lightBlue500,
} from 'material-ui/styles/colors'
// Comp... |
src/components/ChatApp/MessageListItem/MessageListItem.react.js | DeveloperAlfa/chat.susi.ai | import React from 'react';
import PropTypes from 'prop-types';
import Emojify from 'react-emojione';
import TextHighlight from 'react-text-highlight';
import {AllHtmlEntities} from 'html-entities';
import $ from 'jquery';
import { imageParse, processText,
renderTiles, drawMap, drawTable,
renderMessageFooter, render... |
react/src/server.js | Brianpan/charity | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
const server = global.... |
client/modules/Post/__tests__/components/PostListItem.spec.js | Skrpk/mern-sagas | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import PostListItem from '../../components/PostListItem/PostListItem';
import { BrowserRouter } from 'react-router-dom';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
const post = { name: 'Prashant... |
react-dixie-memory-considerate-loading/src/components/MainContent/TwoBox/index.js | GoogleChromeLabs/adaptive-loading | /*
* Copyright 2019 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
app/module-animation/Animation.js | NelsonRock/react-todo-app | import React, { Component } from 'react';
import { render } from 'react-dom';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
class AnimateList extends Component {
constructor() {
super(...arguments);
this.state = {
items:[
{id: 1, name: 'Nelson'},
{id: 2, name:... |
src/components/Feedback/Feedback.js | kaiqigong/verdant-giggle | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
src/components/Project.js | drakang4/creative-project-manager | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Card from './Card';
import Text from './Text';
import { secondary, blackLessLight } from '../styles/color';
const Wrapper = styled.div`
padding: 16px;
padding-top: 72px;
`;
const Contents = styled.div`
... |
client/src/components/hocs/withScrollToTop.js | jenovs/bears-team-14 | import React, { Component } from 'react';
export const withScrollToTop = WrappedComponent => {
return class ScrollToTop extends Component {
componentDidMount() {
window.scrollTo(0, 0);
}
render() {
return <WrappedComponent {...this.props} />;
}
};
};
|
app/javascript/mastodon/components/media_gallery.js | riku6460/chikuwagoddon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { is } from 'immutable';
import IconButton from './icon_button';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { isIOS } from '../is_mobile';
import class... |
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js | amazedkoumei/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
import Overlay from 'react-overlays/lib/Overlay';
import classNames from 'classnames';
import ImmutablePropTypes from ... |
admin/client/App/components/Navigation/Secondary/index.js | xyzteam2016/keystone | /**
* The secondary navigation links to inidvidual lists of a section
*/
import React from 'react';
import { Container } from 'elemental';
import SecondaryNavItem from './NavItem';
var SecondaryNavigation = React.createClass({
displayName: 'SecondaryNavigation',
propTypes: {
currentListKey: React.PropTypes.str... |
pkg/frontend/src/components/Loader.js | Zenika/MARCEL | import React from 'react'
import '../css/loader.css'
const Loader = ({ className, style }) => (
<div className={(className || '') + ' loaderContainer fullSize'}>
<div className={'loader'} style={style}>
Loading...
</div>
</div>
)
export default Loader
|
src/icons/FlightTakeoffIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class FlightTakeoffIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M5 38h38v4H5zm39.14-18.73c-.43-1.6-2.07-2.55-3.67-2.12L29.84 20 16.04 7.13l-3.86 1.04 8.28 14.35-9.9... |
ajax/libs/react-instantsearch/4.1.0-beta.3/Connectors.js | extend1994/cdnjs | /*! ReactInstantSearch 4.1.0-beta.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && ... |
src/Marker.js | chugachski/gorilla-bus-FE | import React from 'react'
const PSMarker = React.createClass({
render: function() {
var K_WIDTH = 40;
var K_HEIGHT = 40;
var PSMarkerStyle = {
position: 'absolute',
width: K_WIDTH,
height: K_HEIGHT,
left: -K_WIDTH / 2,
top: -K_HEIGHT / 2,
... |
src/app/components/imageableEdit.js | benigeri/soapee-ui | import _ from 'lodash';
import React from 'react';
import cx from 'classnames';
import { Button, Thumbnail } from 'react-bootstrap';
import { imageableThumbUrl } from 'resources/imageable';
export default React.createClass( {
render() {
return (
<div className="imageable-edit">
... |
packages/mineral-ui-icons/src/IconLocalPlay.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconLocalPlay(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProp... |
packages/showcase/showcase-app.js | uber/react-vis | import React from 'react';
import PropTypes from 'prop-types';
import ShowcaseDropdown from './showcase-components/showcase-dropdown';
import {
AxesShowcase,
PlotsShowcase,
SunburstSection,
RadialShowcase,
RadarShowcase,
LegendsShowcase,
SankeysShowcase,
TreemapShowcase,
ParallelCoordinatesShowcase,
... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | aovertus/goc_2016_front | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
components/App.js | jordancappy/jorder | import React from 'react'
class App extends React.Component {
render() {
return (
<div>
{this.props.children}
</div>
)
}
}
export default App |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.