path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/Parser/Core/Modules/Items/Legion/TombOfSargeras/InfernalCinders.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 ItemDamageDone from 'Main/ItemDamageDone';
/**
* Infernal Cinders -
* Equip: Your melee attacks have a chance ... |
src/svg-icons/content/content-paste.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentContentPaste = (props) => (
<SvgIcon {...props}>
<path d="M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s... |
docs/src/pages/getting-started/templates/dashboard/listItems.js | lgollut/material-ui | import React from 'react';
import ListItem from '@material-ui/core/ListItem';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import ListItemText from '@material-ui/core/ListItemText';
import ListSubheader from '@material-ui/core/ListSubheader';
import DashboardIcon from '@material-ui/icons/Dashboard';
impor... |
src/components/pin-it-gallery/pin-it-image-owner.js | KoushikKumar/pin-it-client | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { userButtonClicked } from '../../actions';
class PinItImageOwner extends Component {
handleUserButton() {
this.props.userButtonClicked(this.props.imageData.createdBy);
}
render() {
return (
... |
src/components/video_list_item.js | Win-Myint/ReactChallenge2 | import React from 'react';
const VideoListItem = ({ video, onVideoSelect }) => {
const imageUrl = video.snippet.thumbnails.default.url;
return (
<li onClick={() => onVideoSelect(video)} className="list-group-item">
<div className="video-list media">
<div className="media-left">
<img className="media-o... |
app/js/seed/views/_initial.js | blockstack/blockstack-browser | import React from 'react'
import { ShellScreen, Type } from '@blockstack/ui'
import PropTypes from 'prop-types'
const SeedInitial = ({ next, loading, placeholder, ...rest }) => {
const props = {
title: {
children: (
<>Save your Secret Recovery Key</>
)
},
content: {
grow: 1... |
src/renderer/ui/pages/LastFmPage.js | petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL- | import React, { Component } from 'react';
// import { Tabs, Tab } from 'material-ui/Tabs';
// import GeneralTab from '../components/settings/tabs/GeneralTab';
// import HotkeyTab from '../components/settings/tabs/HotkeyTab';
// import LastFMTab from '../components/settings/tabs/LastFMTab';
// import MiniTab from '../c... |
src/docs/examples/TextInputBEM/ExampleError.js | emanualjade/react-jade | import React from 'react';
import TextInputBEM from 'ps-react/TextInputBEM';
export default class ExampleError extends React.Component {
render() {
return (
<TextInputBEM
htmlId="example-optional"
label="First Name"
name="firstname"
required
error="First name is requ... |
src/app/components/search/DateRangeFilter.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { DatePicker } from '@material-ui/pickers';
import FormControl from '@material-ui/core/FormControl';
import InputBase from '@material-ui/core/InputBase';
import FormLabel from '@material-ui/core/FormLabe... |
src/layouts/CoreLayout/CoreLayout.js | denimar/denibudget | import React from 'react'
import Header from '../../components/Header'
import TabViewSelector from '../../components/TabViewSelector'
import ChipsStationSelector from '../../components/ChipsStationSelector'
import './CoreLayout.scss'
import '../../styles/core.scss'
class CoreLayout extends React.Component {
render(... |
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js | NS-Kazuki/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../../ui/containers/status_list_container';
import { expandHashtagTimeline } from '../../../actions/timelines';
import Column from '../../../components/column';
import ColumnHeader from... |
ReactJS/class-2018-01-07/react-firebase/src/App.js | tahashahid/cloud-computing-2017 | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import firebase from 'firebase';
class App extends Component {
constructor() {
super();
this.state = {
arr: [],
keys: [],
data: null,
edit: [],
}
}
componentDidMount() {
firebas... |
client/views/omnichannel/analytics/DateRangePicker.stories.js | VoiSmart/Rocket.Chat | import React from 'react';
import DateRangePicker from './DateRangePicker';
export default {
title: 'components/DateRangePicker',
component: DateRangePicker,
};
export const Default = () => <DateRangePicker />;
|
test/test_helper.js | peterussell/udemy-4-redux-wx | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
packages/ringcentral-widgets-docs/src/app/pages/Components/ContactDisplay/Demo.js | ringcentral/ringcentral-js-widget | import React, { Component } from 'react';
// eslint-disable-next-line
import ContactDisplay from 'ringcentral-widgets/components/ContactDisplay';
/**
* A example of `ContactDisplay`
*/
const contactMatches = [
{
name: 'Harry Potter',
entityType: 'Contact',
},
{
name: 'Ron Weasley',
entityType: ... |
genie-web/src/main/resources/static/scripts/components/SiteHeader.js | irontable/genie | import T from 'prop-types';
import React from 'react';
import { Link } from 'react-router';
const SiteHeader = props => (
<div className="site-header">
<nav className="navbar">
<div className="container-fluid">
<div className="navbar-header">
<ul className="nav navbar-nav">
{p... |
prototypes/console-boilerplate/src/index.js | yldio/joyent-portal | import React from 'react';
import ReactDOM from 'react-dom';
import { ThemeProvider } from 'styled-components';
import { Provider as ReduxProvider } from 'react-redux';
import { ApolloProvider } from 'react-apollo';
import { BrowserRouter } from 'react-router-dom';
import isFunction from 'lodash.isfunction';
import isF... |
app/javascript/src/components/loadingView.js | michelson/chaskiq | import styled from '@emotion/styled'
import React from 'react'
// taken from https://codepen.io/sabin42/pen/odjvKy
const LoadingWrapper = styled.div`
.wrapper {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
min-width: 100vw;
//background-color: #c89b7e;
}
... |
app/components/Receive.js | kensworth/Filebrew | import React, { Component } from 'react';
import $ from 'jquery';
import Progress from './Progress';
import styles from '../styles/App.css';
class Receive extends Component {
constructor(props) {
super(props);
this.state = {
downloading: this.props.seeding,
progress: 0
};
this.props.clien... |
src/components/Footer/Footer.js | bopeng87/reactfullstack | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import s from '.... |
example/src/index.js | gabergg/react-scrollable-anchor | import React from 'react'
import ReactDOM from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import './styles/reset.css'
import App from './components/App'
const render = () => {
ReactDOM.render(
<AppContainer>
<App/>
</AppContainer>,
document.getElementById('root')
)
}
render()
... |
_seraphim/src/elements/panel/GridInput.js | goldbuick/src | import R from 'ramda';
import React from 'react';
import tween from 'anim/tween';
import Panel from 'elements/panel/Core';
import RenderObject from 'render/RenderObject';
const onInputEvent = R.memoize((key, elementId, x, y, onCellTap) => {
return ({ type, event, animateState }) => {
if (type === 'tap') {
... |
src/parser/shared/modules/features/CharacterTab/Component/index.js | FaideWW/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import Combatant from 'parser/core/Combatant';
import StatTracker from 'parser/shared/modules/StatTracker';
import './CharacterTab.css';
import Stats from './Stats';
import Talents from './Talents';
import Gear from './Gear';
import Race from './Race';
im... |
packages/material-ui-icons/src/MoneyOff.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let MoneyOff = props =>
<SvgIcon {...props}>
<path d="M12.5 6.9c1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-.53.12-1.03.3-1.48.54l1.47 1.47c.41-.17.91-.27 1.51-.27zM5.33 4.06L4.06 5.33... |
src/OldApp.js | nsipplswezey/UniversalDemo3 | import React, { Component } from 'react';
import { NICE, SUPER_NICE } from './colors';
class Counter extends Component {
constructor(props){
super(props);
this.state = { counter: 0 };
this.interval = setInterval(() => this.tick(), 1000);
}
tick() {
this.setState({
counter: this.state.count... |
docs/app/Examples/collections/Menu/Types/MenuExampleAttached.js | koenvg/Semantic-UI-React | import React from 'react'
import { Dropdown, Icon, Menu, Segment } from 'semantic-ui-react'
// TODO: Update <Search> usage after its will be implemented
const MenuExampleAttached = () => {
return (
<div>
<Menu attached='top'>
<Dropdown item icon='wrench' simple>
<Dropdown.Menu>
... |
src/app/app.js | nicolaspayot/react-tour-of-heroes | import React, { Component } from 'react';
import { Link } from 'react-router';
import { hero } from './hero/hero';
import './app.scss';
export class App extends Component {
constructor(props) {
super(props);
this.state = { heroes: [] };
}
componentDidMount() {
hero.query().then(data => this.setSta... |
src/svg-icons/social/cake.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialCake = (props) => (
<SvgIcon {...props}>
<path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l... |
src/containers/TaskPanel.js | CurtisMBSmith/web-frontend-proto | import React from 'react';
import TaskForm from './TaskForm';
import TaskBox from './TaskBox';
const TaskPanel = () => (
<div className="taskPanel" >
<TaskForm />
<TaskBox />
</div>
);
export default TaskPanel; |
src/docs/components/chart/HotSpotsDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Anchor from 'grommet/components/Anchor';
import DocsArticle from '../../../components/DocsArticle';
import BackControl from './BackControl';
export default class HotSpotsDoc extends Component {
ren... |
stories/adding-images/src/ImageAdd/index.js | nikgraf/draft-js-plugin-editor | import React, { Component } from 'react';
import styles from './styles.css';
export default class ImageAdd extends Component {
// Start the popover closed
state = {
url: '',
open: false,
};
// When the popover is open and users click anywhere on the page,
// the popover should close
componentDidMo... |
examples/todomvc/containers/App.js | KyleAMathews/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
const redux = createRedux(stores);
export default class App extends Component {
render() {
return (
<Provider redux={... |
packages/flint.js/src/flint.js | vikmeup/flint | import 'reapp-object-assign'
import ee from 'event-emitter'
import resolveStyles from 'flint-radium/lib/resolve-styles'
// import Radium from 'radium'
import React from 'react'
import ArrayDiff from './lib/arrayDiff'
import ReactDOM from 'react-dom'
import raf from 'raf'
import equal from 'deep-equal'
import clone from... |
generators/react/template/stories/index.js | ui-storybook/sb-cli | import React from 'react';
import 'ui-storybook/sb';
import 'ui-storybook/stories';
// Hot reload support
if (module.hot) {
module.hot.accept();
window.sb.reload();
}
// Remove this demo component
import { Welcome } from './../welcome/welcome';
// Write your stories here
let overview = sb.section('Welcome s... |
src/frontend/components/scans.js | mweibel/esrscan-desktop | import React from 'react'
import { connect } from 'react-redux'
import ScanItem from './scan-item'
import translation from './../translation'
class Scans extends React.Component {
render () {
if (this.props.scans.length === 0) {
return (
<div className='bg-white no-cellspacing full-width txt-big'>
... |
src/www/js/components/edit-row.js | training4developers/bootcamp_04112016 | import React from 'react';
import DropDownComponent from './drop-down';
export default class EditRow extends React.Component {
constructor(props) {
super(props);
if (props.widget) {
this.state = {
id: props.widget.id,
name: props.widget.name,
description: props.widget.description,
color: prop... |
hello-react/src/test/Context.js | treason258/TreLibrary | import React from 'react';
import {Component} from 'react'
import PropTypes from 'prop-types'
class Index extends Component {
static childContextTypes = {
themeColor: PropTypes.string
}
constructor() {
super()
this.state = {themeColor: 'red'}
}
componentWillMount() {
... |
src/Parser/Paladin/Retribution/Modules/Items/WhisperOfTheNathrezim.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import SpellLink from 'common/SpellLink';
import ItemLink from 'common/ItemLink';
import { formatNumber, formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | pmai6/pmai6.github.io | 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'));
|
app/components/PhotoItem/index.js | sandim27/ReduxApp | import React from 'react';
import { Thumbnail, Button, Col, Tooltip, OverlayTrigger } from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
import 'font-awesome/css/font-awesome.min.css';
import './assets/photoCol.scss';
const PhotoCol = ({ photo }) => {
const tooltip = (
<Tooltip id="t... |
Entrega2_reactJS/eltiempo/src/App.js | Pablo126/SSBW | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import "bootstrap/dist/css/bootstrap.css";
import { Navbar, NavItem, Nav, Grid, Row, Col } from "react-bootstrap";
const ALBUMS = [
{ name: "Orange channel", albumID: "623Ef2ZEB3Njklix4PC0Rs" },
{ name: "blond", albumID: "... |
website/src/css/index.js | atomiks/tippyjs | import React from 'react';
import {MEDIA} from '../components/Framework';
import {Global, css} from '@emotion/core';
const MONOSPACE_FONT_STACK = `Menlo, "Dank Mono", Inconsolata, "Operator Mono", Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera... |
contento/js-source/node_modules/react-sortable/example/index.js | inmagik/contento | //block 1
import React from 'react';
//import { Sortable } from 'react-sortable';
import { SortableComposition as Sortable } from '../src/SortableComposition'
var ListItem = React.createClass({
displayName: 'SortableListItem',
render: function () {
return (
<div {...this.props} className="list-item">{t... |
src/components/goals.js | SaintEmbers/relationplex | import React from 'react'
import {Input} from 'react-bootstrap';
// require('./styles/main.css')
import Firebase from 'firebase'
const Goals = React.createClass({
componentWillMount() {
this.firebaseRef = new Firebase("https://awesomejar.firebaseio.com/goals");
console.log('firebase', this.firebaseRef)
},
... |
examples/shared-root/app.js | jdelight/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<p>
This illustrates how routes can share UI w/o sharing the URL.
When routes have no path, they never match themselves but their
chil... |
src/App.js | omarcodex/butterfly-pinner | import React, { Component } from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import { BrowserRouter as Router, Redirect, Route } from 'react-router-dom';
import Login from './pages/login';
import Profile from './pages/profile';... |
anubis/ui/components/scratchpad/ScratchpadContainer.js | KawashiroNitori/Anubis | import React from 'react';
import SplitPane from 'react-split-pane';
import { connect } from 'react-redux';
import _ from 'lodash';
import SplitPaneFillOverlay from '../react-splitpane/SplitPaneFillOverlayComponent';
import ScratchpadToolbar from './ScratchpadToolbarContainer';
import ScratchpadEditor from './Scratchpa... |
src/App.js | dyaroman/react-hello-world | import React, { Component } from 'react';
import allItems from './components/allItems';
import TodoItem from './components/TodoItem';
import NewTodoItem from './components/NewTodoItem';
class App extends Component {
constructor(props){
super(props);
this.addEvent = this.addEvent.bind(this);
}
getInitialS... |
cheesecakes/admin/admin/src/containers/PluginPage/index.js | strapi/strapi-examples | /*
*
* PluginPage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import { createSelector } from 'reselect';
import BlockerComponent from 'components/BlockerComponent';
import ErrorBoundary from 'components/ErrorBoundary... |
client/modules/Ward/components/WardList/WardList.js | lordknight1904/bigvnadmin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Table, Checkbox, Button } from 'react-bootstrap';
import { fetchWards, toggleWard } from '../../WardActions';
import { getWards, getCurrentPage, getDistrictId } from '../../WardReducer';
import ... |
src/svg-icons/action/grade.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGrade = (props) => (
<SvgIcon {...props}>
<path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/>
</SvgIcon>
);
ActionGrade = pure(ActionGrade);
ActionGrade.... |
src/components/DraftEditor/plugins/MediaPlugin.js | yiweimatou/doctor-antd | import React from 'react'
import { createPlugin } from 'draft-extend'
import { Entity } from 'draft-js'
import { ImageButton, ImageDecorator } from './ImagePlugin'
import { AudioButton, AudioDecorator } from './AudioPlugin'
import { VideoButton, VideoDecorator } from './VideoPlugin'
const ENTITY_TYPE = {
IMAGE: 'I... |
Libraries/Image/Image.ios.js | jaggs6/react-native | /**
* Copyright (c) 2015-present, Facebook, 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.
*
* @provides... |
test/test_helper.js | tszyszko1/Epicodezadanie | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/index.js | CirnoV/web-nodap | import React from 'react';
import {render} from 'react-dom';
// import {Provider} from 'react-redux';
import {BrowserRouter as Router, Route} from 'react-router-dom';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
import 'normalize.css';
import App from './components/App/App';
regis... |
app/addons/permissions/components/PermissionsSection.js | apache/couchdb-fauxton | // 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 in writing, software
// distributed un... |
src/containers/Twitch.js | Vargentum/react-redux-apps | import React from 'react'
import { connect } from 'react-redux'
import {loadAllUsers, loadAllStreams} from '../redux/modules/Twitch'
import TwitchUI from '../components/TwitchUI/TwitchUI'
type Props = {
users: PropTypes.array.isRequired,
streams: PropTypes.array.isRequired,
loading: PropTypes.bool,
error: Prop... |
src/v2/stories/MuteButton.stories.js | aredotna/ervell | import React from 'react'
import { storiesOf } from '@storybook/react'
import MuteButton from 'v2/components/MuteButton'
storiesOf('MuteButton', module).add('default', () => (
<MuteButton id={666} type="BLOCK" />
))
|
scaffold/templates/statefulComponentRedux.js | pbarbiero/enhanced-electron-react-boilerplate | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from './component.js';
const mapStateToProps = (state) => { return {
...state.{{ComponentName}}
} }
const mapDispatchToProps = (dispatch) => { return {
dummyAction: () => {
dispatch( actions.dummyAction() );
... |
smartSILS/usermains/AboutApp.ios.js | wangleibeckham/iPRED | 'use strict'
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
StatusBar,
ScrollView,
ActivityIndicator,
PixelRatio,
Image,
TouchableOpacity,
Dimensions,
} from 'react-native';
var currWindow = Dimensions.get('window');
var silsLogo = require("../res/draw... |
8.2.2/examples/syncValidation/dist/bundle.js | erikras/redux-form-docs | !function(t){function n(e){if(r[e])return r[e].exports;var i=r[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var r={};n.m=t,n.c=r,n.i=function(t){return t},n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var r=t&&t.__e... |
src/Modal.js | Terminux/react-bootstrap |
/* eslint-disable react/prop-types */
import classNames from 'classnames';
import React from 'react';
import ReactDOM from 'react-dom';
import tbsUtils, { bsClass, bsSizes } from './utils/bootstrapUtils';
import { Sizes } from './styleMaps';
import getScrollbarSize from 'dom-helpers/util/scrollbarSize';
import canUse... |
client/src/services/service.card.component.js | Thiht/docktor | // React
import React from 'react';
import { Link } from 'react-router';
// Dependencies
import moment from 'moment';
// Style
import './service.card.component.scss';
// ServiceCard Component
class ServiceCard extends React.Component {
render() {
const service = this.props.service;
return (
... |
react-redux-tutorial/02-rendering-a-route/index.js | react-scott/react-learn | /**
* Created by scott on 7/10/16.
*/
import React from 'react'
import { render } from 'react-dom'
import App from './modules/App'
render(
<App/>,
document.getElementById('app')
) |
src/svg-icons/device/location-disabled.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceLocationDisabled = (props) => (
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.5... |
src/components/nav.js | Swan/Eggplants | import React, { Component } from 'react';
class Nav extends Component {
render() {
return (
<nav id="eggplants-nav" className="navbar navbar-inverse">
<div className="container">
<div className="navbar-header">
<button type="button" class... |
src/parser/warrior/arms/modules/core/Overpower.js | FaideWW/WoWAnalyzer | import React from 'react';
import { formatPercentage } from 'common/format';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import Enemies from 'parser/shared/modules/Enemies';
impor... |
src/MessageBox/MessageBoxFunctionalLayout.js | skyiea/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import HeaderLayout from './HeaderLayout';
import FooterLayout from './FooterLayout';
import WixComponent from '../BaseComponents/WixComponent';
import classNames from 'classnames';
import styles from './MessageBoxFunctionalLayout.scss';
class MessageBoxF... |
src/components/clock.js | amymc/two_point_oh | import React from 'react';
import '../styles/components/clock.scss';
class Clock extends React.Component {
constructor(props) {
super(props);
this.setTime = this.setTime.bind(this);
}
// http://stackoverflow.com/questions/32880484/react-js-live-clock-update
setTime(){
const currentdate = new Date... |
src/components/ClockProvider/index.js | welovekpop/uwave-web-welovekpop.club | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import {
createTimer as createTimerAction,
stopTimer as stopTimerAction,
} from '../../actions/TickerActionCreators';
const mapDispatchToProps = {
createTimer: createTimerAction,
stopTimer: stopTimerAction,
};... |
app/javascript/mastodon/features/status/components/card.js | esetomo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import punycode from 'punycode';
import classnames from 'classnames';
const IDNA_PREFIX = 'xn--';
const decodeIDNA = domain => {
return domain
.split('.')
.map(part => part.indexOf(IDNA... |
js/components/radio/index.js | yasster/Divide-react-native |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Button, Icon, List, ListItem, Radio, Text } from 'native-base';
import { openDrawer } from '../../actions/drawer';
import styles from './styles';
class NHRadio extends Component {
static pr... |
src/index.js | plimble/aloy | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
app/javascript/flavours/glitch/components/picture_in_picture_placeholder.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Icon from 'flavours/glitch/components/icon';
import { removePictureInPicture } from 'flavours/glitch/actions/picture_in_picture';
import { connect } from 'react-redux';
import { debounce } from 'lodash';
import { FormattedMessage } from 'react-intl';... |
geonode/contrib/monitoring/frontend/src/components/cels/response-table/index.js | ingenieroariel/geonode | import React from 'react';
import PropTypes from 'prop-types';
import HR from '../../atoms/hr';
import styles from './styles';
class ResponseTable extends React.Component {
static propTypes = {
average: PropTypes.number,
errorNumber: PropTypes.number,
max: PropTypes.number,
requests: PropTypes.numbe... |
src/containers/Homepage/Homepage.js | nikhilfusion/substitutionApp | import React, { Component } from 'react';
import TopSellingList from '../../components/Homepage/TopSellingList';
import SearchResultList from '../../components/Search/Search';
import api from '../../api/api';
import Header from '../../components/Common/Header';
import './Homepage.css';
class Homepage extends Component... |
blueocean-material-icons/src/js/components/svg-icons/action/accessible.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionAccessible = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="4" r="2"/><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19-.26C10.76 7.11 10 8.04 10 9.09V1... |
src/components/MyTable.js | fredrikku/rikku-grommet-react-sample | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Title from 'grommet/components/Title';
import Header from 'grommet/components/Header';
import TableHeader from 'grommet/components/TableHeader';
import Table from 'grommet/components/Table';
import TableRow from 'grommet/components/Tab... |
examples/todos/src/components/TodoList.js | lifeiscontent/redux | import React from 'react'
import PropTypes from 'prop-types'
import Todo from './Todo'
const TodoList = ({ todos, onTodoClick }) => (
<ul>
{todos.map(todo =>
<Todo
key={todo.id}
{...todo}
onClick={() => onTodoClick(todo.id)}
/>
)}
</ul>
)
TodoList.propTypes = {
todos:... |
examples/04 Sortable/Cancel on Drop Outside/index.js | Reggino/react-dnd | import React from 'react';
import Container from './Container';
export default class SortableCancelOnDropOutside {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/04%20Sortable/Cancel%20on%20Drop%20Outside'>Browse the Source</a></b>
... |
src/Fade.js | gianpaj/react-bootstrap | import React from 'react';
import Transition from 'react-overlays/lib/Transition';
import CustomPropTypes from './utils/CustomPropTypes';
import deprecationWarning from './utils/deprecationWarning';
class Fade extends React.Component {
render() {
let timeout = this.props.timeout || this.props.duration;
retu... |
source/app.js | simonewebdesign/react-router-page-js | import React from 'react';
import MainMenu from './components/main-menu/main-menu';
import Router from './router';
import routes from './config/routes';
class App extends React.Component {
render() {
return (
<div>
<MainMenu />
<Router routes={routes} />
</div>
);
}
}
React.ren... |
components/PhotoCollage.js | nickroberts404/meadowlab | import React, { Component } from 'react';
// div.stacked-photos contains the same photos as section 1 and 3, but I could not figure out how to
// get them to stay on the same line after making div.collage flex-direction: column.
// There a may be a way, but for now this was quicker, and makes no more requests than u... |
node_modules/react-bootstrap/es/NavbarHeader.js | C0deSamurai/muzjiks | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
docs/src/HomePage.js | JimiHFord/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageFooter from './PageFooter';
import Grid from '../../src/Grid';
import Alert from '../../src/Alert';
import Glyphicon from '../../src/Glyphicon';
import Label from '../../src/Label';
export default class HomePage extends React.Component {
render(... |
src/pages/about.js | AlbinOS/book-keeper-ui | import React from 'react';
import GoMarkGithub from 'react-icons/lib/go/mark-github';
class About extends React.Component {
render() {
return (
<div>
<h1>About Book Keeper</h1>
<p>Contact <a href="mailto:gilles.albin@gmail.com" target="_top">Albin Gilles</a> for any questions or h... |
fixtures/fiber-debugger/src/Fibers.js | syranide/react | import React from 'react';
import {Motion, spring} from 'react-motion';
import dagre from 'dagre';
// import prettyFormat from 'pretty-format';
// import reactElement from 'pretty-format/plugins/ReactElement';
function getFiberColor(fibers, id) {
if (fibers.currentIDs.indexOf(id) > -1) {
return 'lightgreen';
}... |
src/index.js | touqeerkhan11/react-portal-example | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import Demo from './Demo';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<Demo />, document.getElementById('root'));
registerServiceWorker();
|
src/components/signup-form/logo.js | mozilla/advocacy.mozilla.org | import React from 'react';
var Logo = React.createClass({
render: function() {
return (
<div className="nav-container">
<div className="nav">
<div className="nav-logo-container">
<a href="https://mozilla.org/" className="nav-logo"></a>
</div>
</div>
</d... |
src/internal/FocusRipple.js | pradel/material-ui | import React from 'react';
import ReactDOM from 'react-dom';
import shallowEqual from 'recompose/shallowEqual';
import autoPrefix from '../utils/autoPrefix';
import transitions from '../styles/transitions';
import ScaleInTransitionGroup from './ScaleIn';
const pulsateDuration = 750;
class FocusRipple extends React.Co... |
dynamic-react-router demo/src/Components/Pages/pageTwo.js | gabriel-lopez-lopez/dynamic-react-route | import React, { Component } from 'react';
class PageTwo extends Component {
constructor(props) {
super(props);
}
render () {
return (
<h1>Page Two</h1>
);
}
}
export default PageTwo;
|
src/components/Dropdown/Dropdown-story.js | jzhang300/carbon-components-react | /* eslint-disable no-console */
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import Dropdown from '../Dropdown';
import DropdownItem from '../DropdownItem';
const dropdownEvents = {
className: 'some-class',
};
storiesOf('Dropdown', modu... |
EEG101/src/components/WhiteLinkButton.js | tmcneely/eeg-101 | // LinkButton.js
// A React Router Link styled as a nice white button
import React, { Component } from 'react';
import { Link } from 'react-router-native';
import {
Text,
View,
TouchableOpacity,
StyleSheet,
} from 'react-native';
import * as colors from "../styles/colors";
export default class WhiteButton ext... |
src/svg-icons/image/hdr-weak.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrWeak = (props) => (
<SvgIcon {...props}>
<path d="M5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm12-2c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4... |
node_modules/react-router/modules/RouteContext.js | ibjohansen/acando-react-boilerplate-extended | import React from 'react'
const { object } = React.PropTypes
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent transitions.
*/
const RouteContext = {
prop... |
src/components/loading-indicators/loading-user-list-item.component.js | gitpoint/git-point | import React from 'react';
import { Animated } from 'react-native';
import styled from 'styled-components';
import { colors } from 'config';
import { FadeAnimationProps, withFadeAnimation } from 'utils';
const Container = styled.View`
padding: 10px;
border-bottom-width: 1;
border-bottom-color: #ededed;
backgro... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | yukizrj/HealthCare-F | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/client/assets/javascripts/app/DevTools.js | hasznosl/truth-cv-frontend | import React from 'react';
import { createDevTools } from 'redux-devtools';
// Monitors are separate packages, and you can make a custom one
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
import SliderMonitor from 'redux-slider-monitor';
// createDevTools t... |
PDFView.ios.js | cnjon/react-native-pdf-view | 'use strict';
import React, { Component } from 'react';
import { requireNativeComponent, View } from 'react-native';
import PropTypes from 'prop-types';
class PDFView extends Component {
constructor(props) {
super(props);
this._onChange = this._onChange.bind(this);
}
setNativeProps(nativeProps) {
th... |
components/Navbar.js | cindytung/calwtcrew | import React, { Component } from 'react';
import { Link } from 'react-router';
import Headroom from 'react-headroom';
import classNames from 'classnames';
import logo from '../assets/images/logo.png';
export default class Navbar extends Component {
constructor(props) {
super(props);
this.state = {
open... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.