path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
pathfinder/vtables/appmap2cim/src/Table.js | leanix/leanix-custom-reports | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import TableUtilities from './common/TableUtilities';
class Table extends Component {
constructor(props) {
super(props);
}
render() {
return (
<BootstrapT... |
src/svg-icons/av/hd.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvHd = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-... |
src/App.js | dpastoor/assignment-manager | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, Link } from 'react-router';
import {AppBar, IconButton, FlatButton, RaisedButton} from 'material-ui';
require('./main.scss');
import NavigationClose from 'material-ui/lib/svg-icons/navigation/close';
import ThemeManager ... |
src/index.js | wortwart/react-dummy | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/pages/startegy/StartegyList.js | i-July/footballgo | import React, { Component } from 'react';
import { Link, withRouter } from 'react-router-dom';
class StrategyList extends Component {
render() {
return (
<div>
<h2>这是战略列表</h2>
<ul>
<li>
<Link to="/strategy/1">战略1</Link>
</li>
<li>
<Link ... |
src/components/pokemon.js | bikinavisho/react-pokedex | import React, { Component } from 'react';
class Pokemon extends Component {
render() {
}
}
|
Faw.Web.Client/src/routes/NotFound/components/NotFound.js | Demenovich-A-J/Family-s-adventure-world | import React from 'react'
import { Grid, Cell } from 'react-mdl'
import './NotFound.scss'
export const NotFound = (props) => (
<Grid>
<Cell col={12}>
Bro, we did`t found such route. Sorry...
</Cell>
</Grid>
)
NotFound.propTypes = {
}
export default NotFound
|
docs/typography/helpers/index.js | valzav/react-foundation-components | import React from 'react';
import { Subheader, Lead, UnbulletedList, Statistic } from '../../../src/typography-helpers';
const TypographyHelpersPage = () => (
<div>
<Subheader>unspecified subheader</Subheader>
<Subheader><h1>h1 subheader</h1></Subheader>
<Subheader><h2>h2 subheader</h2></Subheader>
... |
src/routes/content/index.js | loganfreeman/react-is-fun | /**
* 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 from 'react';
import Content from './Content'... |
src/web/components/UpdateProfile.js | TeodorKolev/Help | import React from 'react';
import PropTypes from 'prop-types';
import {
Row,
Col,
Card,
Form,
Label,
Alert,
Input,
Button,
CardBody,
FormGroup,
CardHeader,
} from 'reactstrap';
import Loading from './Loading';
class UpdateProfile extends React.Component {
static propTypes = {
error: PropTyp... |
test/test_helper.js | sofiamatulis/react-project | 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... |
components/GoogleResults.ios.js | fjjk-snacktime/snacktime | import React, { Component } from 'react';
import { Text, Image, TouchableHighlight, View, ListView } from 'react-native';
import FoodpairResults from './FoodpairResults.ios.js';
import helpers from '../helpers/helpers.js';
import styles from '../styles.ios.js';
export default class GoogleResults extends Component {
... |
assets/javascripts/kitten/components/graphics/icons/messenger-icon/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
export const MessengerIcon = ({ color, title, ...props }) => (
<svg viewBox="0 0 20 21" fill={color} {...props}>
{title && <title>{title}</title>}
<path d="M10 .938c-5.523 0-10 4.171-10 9.317 0 2.932 1.454 5.547 3.727 7.255v3.552l3.405-1.88c.908.25... |
components/Login.js | mike-bynum/PawsAndStripesNativeApp |
import { GoogleSignin, GoogleSigninButton } from 'react-native-google-signin';
import React, { Component } from 'react';
import { StyleSheet, Text, Image, View, TouchableOpacity } from 'react-native';
import { NavigationActions } from 'react-navigation';
import Spinner from 'react-native-loading-spinner-overlay';
/... |
src/svg-icons/action/picture-in-picture-alt.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPictureInPictureAlt = (props) => (
<SvgIcon {...props}>
<path d="M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z"/>
</Svg... |
examples/async/containers/Root.js | ariporad/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from '../store/configureStore';
import AsyncApp from './AsyncApp';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
{() ... |
src/index.js | FourwingsY/react-sketch-viewer | import React from 'react'
import ReactDOM from 'react-dom'
import Document from './Document'
ReactDOM.render(<Document />, document.querySelector("#app")) |
src/components/stardef.js | alexsincai/star-system-map-generator | import React from 'react';
const StarDef = ( props ) => {
const rays = props.rays.map( ( r, rr ) => {
return {
key: rr,
x1: 0,
y1: 0,
x2: r.length,
y2: 0,
stroke: props.color,
strokeWidth: 0.125,
strokeLinecap: 'round',
transform: `rotate(${ r.angle } 0 0)`
};
} );
return (
<g>
... |
tests/baselines/reference/checkJsxChildrenCanBeTupleType.js | kpreisser/TypeScript | //// [checkJsxChildrenCanBeTupleType.tsx]
/// <reference path="/.lib/react16.d.ts" />
import React from 'react'
interface ResizablePanelProps {
children: [React.ReactNode, React.ReactNode]
}
class ResizablePanel extends React.Component<
ResizablePanelProps, any> {}
const test = <ResizablePanel>
<div />
<di... |
app/containers/App/index.js | Generic35/ScalableReactRedux | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
src/js/pages/Home.js | daigof/react-examples | import React from 'react';
class Home extends React.Component {
render() {
return (
<div>
<h2>Home</h2>
</div>
);
}
}
export default Home;
|
pages/404.js | arielmchen/arielchen | import React, { Component } from 'react';
import Helmet from 'react-helmet';
import { config } from 'config';
import { Link } from 'react-router';
import { prefixLink } from 'gatsby-helpers';
export default class NotFound extends Component {
render () {
return (
<div className="page page--not-found">
... |
socket/src/components/dashboard.js | pixelgrade/starter_content_exporter | import React from 'react'
import ReactDOM from 'react-dom'
import SocketPostSelect from './postSelect.js'
import SocketTaxSelect from './taxSelect.js'
import SocketGallery from './gallery.js'
import {
Button,
Checkbox,
Container,
Dimmer,
Divider,
Dropdown,
Form,
Grid,
Header,
Label,
Loader,
Radio,
Segment,... |
app/javascript/mastodon/features/lists/index.js | amazedkoumei/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 Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compo... |
src/components/Home/views/AbstractHomeView.js | chanpod/bosscollectionReact | /**
* @flow
*/
import React from 'react'
/**
* Use an abstract class if you need to share functions that aren't used in the redux cycle. EG Helper functions etc.
*
*/
export default class AbstractHome extends React.Component {
constructor(props) {
super(props);
}
componentWillMount() {
... |
assets/jqwidgets/demos/react/app/grid/widgetcolumn/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
render() {
let data = new Array();
let firstNames = ['Nancy', 'And... |
src/client/pages/client_2.js | nefa/Leeact | import React from 'react';
import socketIo from 'socket.io-client';
import MessSend from './message-sender';
export default class Client2 extends React.Component {
constructor(props) {
super(props);
this.state = this.initialState(),
this.counter = 0;
}
componentDidMount() {
const endpoint = 'h... |
src/views/components/github-logo/github-logo.js | Phobos2350/freezer-base | import React from 'react';
export default function GitHubLogo() {
return (
<svg viewBox="0 0 20 20">
<path d="M10 0C4.5 0 0 4.5 0 10c0 4.4 2.9 8.2 6.8 9.5.5.1.7-.2.7-.5v-1.9c-2.5.5-3.2-.6-3.4-1.1-.1-.3-.6-1.2-1-1.4-.4-.2-.9-.6 0-.7.8 0 1.3.7 1.5 1 .9 1.5 2.4 1.1 3 .9.1-.6.4-1.1.6-1.3-2.2-.3-4.6-1.2-4.6-5 ... |
src/frontend/components/EventRSVPTable.js | Bernie-2016/ground-control | import React from 'react'
import {
Table,
TableHeaderColumn,
TableRow,
TableHeader,
TableRowColumn,
TableBody,
TableFooter
} from 'material-ui'
import phoneFormatter from 'phone-formatter'
export default class EventRSVPTable extends React.Component {
static propTypes = {
attendees: React.PropTypes.... |
www/frontend/node_modules/react-router/es6/withRouter.js | lokiiart/upali-mobile | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import React from 'react';
import hoistStatics from 'hoist-no... |
src/svg-icons/maps/restaurant-menu.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRestaurantMenu = (props) => (
<SvgIcon {...props}>
<path d="M8.1 13.34l2.83-2.83L3.91 3.5c-1.56 1.56-1.56 4.09 0 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2... |
src/js/components/FileInput/stories/MaxFileCount.js | grommet/grommet | import React from 'react';
import { Box, Button, FileInput, Form, FormField } from 'grommet';
export const MaxFileCount = () => (
<Box fill align="center" justify="start" pad="large">
<Box width="medium">
<Form validate="submit">
<FormField name="fileInput" htmlFor="fileInput" required>
... |
Libraries/CustomComponents/Navigator/Navigator.js | jadbox/react-native | /**
* Copyright (c) 2013-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.
*
* Facebook,... |
dashboard-ui/app/components/dashboardproject/optionsModal.js | CloudBoost/cloudboost | /**
* Created by Darkstar on 12/4/2016.
*/
import React from 'react';
import UserAccess from './userAccess';
import Keys from './keys';
import PropTypes from 'prop-types';
const OptionsModal = (props) => {
return (
<div>
{
(props.selectedTab === 'addDev') &&
<UserAccess id={props.id}
... |
src/index.js | shitangdama/electron-exhentai | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'mobx-react';
import { AppContainer } from 'react-hot-loader';
import injectTapEventPlugin from 'react-tap-event-plugin';
import './assets/css/main.css';
import Auth from './stores/Auth';
import PicStore from './stores/PicStore... |
fields/types/localfile/LocalFileField.js | mikaoelitiana/keystone | import Field from '../Field';
import React from 'react';
import ReactDOM from 'react-dom';
import { Button, FormField, FormInput, FormNote } from 'elemental';
module.exports = Field.create({
shouldCollapse () {
return this.props.collapse && !this.hasExisting();
},
fileFieldNode () {
return ReactDOM.findDOMNod... |
investninja-web-ui-admin/src/vendor/recharts/demo/component/DemoRadarItem.js | InvestNinja/InvestNinja-web-ui | import React from 'react';
import { Dot, Polygon } from 'recharts';
const RADIAN = Math.PI / 180;
const DemoRadarItem = ({ radar }) => {
const { radius, cx, cy, innerRadius, outerRadius, startAngle, clockWise } = radar;
const sign = clockWise ? -1 : 1;
const angleInterval = 360 / radius.length;
const points ... |
src/character/sheet/BasicSheet.js | revuniversal/5e-sheets | import React from 'react';
import styled from 'styled-components';
import { FlexRow, FlexCell } from './common';
import BasicInfo from './basic/BasicInfo';
import VerticalAbilityBlock from './abilities/VerticalAbilityBlock';
import Inspiration from './stats/Inspiration';
import Profiency from './stats/Proficiency';
imp... |
src/App.js | Ligerlilly/redo | import React from 'react';
import {TodoList} from './TodoList';
import {AddTodo} from './AddTodo';
import {Footer} from './Footer';
import VisibleTodoList from './VisibleTodoList'
export const App = ({
todos,
visibilityFilter,
store,
getVisibleTodos,
nextTodoId
}) => {
return (
<div>
<AddTodo st... |
packages/docs/pages/plugin/video/index.js | draft-js-plugins/draft-js-plugins | // eslint-disable-next-line import/no-unresolved
// eslint-disable-next-line import/no-duplicates
import addVideoEditorExampleCode from '!!raw-loader!../../../components/Examples/video/CustomAddVideoVideoEditor';
// eslint-disable-next-line import/no-unresolved
// eslint-disable-next-line import/no-duplicates
import cu... |
src/server.js | dongxiaofen/react-redux-motion | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import path from 'path';
import createStore from './redux/create';
import Html from './helpers/Html';
import Prett... |
app/components/RevertEntity/ShowSelectedEntity.js | klpdotorg/tada-frontend | import React from 'react';
import PropTypes from 'prop-types';
import Entity from './Entity';
const ShowSelectedEntity = ({ selectedEntity, dispatch }) => {
return <Entity dispatch={dispatch} entityName={selectedEntity} />;
};
ShowSelectedEntity.propTypes = {
selectedEntity: PropTypes.string,
dispatch: PropType... |
app/containers/BattleContainer.js | DeividasK/click-or-be-clicked | import React from 'react';
import Battle from '../components/Battle';
import { resumeGame, updateBoard, exitGame, updateGame, newShape, reduceActions } from '../actions/gameActions';
import Shape from '../utils/shapesHelper';
import { connect } from 'react-redux';
@connect((store) => {
return {
userId: sto... |
src/components/AbrilText/AbrilText.js | GoogleChromeLabs/react-shrine | /*
* 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 ... |
src/svg-icons/action/assignment-late.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentLate = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-6 15h-2v-2h2v2zm0... |
src/svg-icons/notification/sync-problem.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSyncProblem = (props) => (
<SvgIcon {...props}>
<path d="M3 12c0 2.21.91 4.2 2.36 5.64L3 20h6v-6l-2.24 2.24C5.68 15.15 5 13.66 5 12c0-2.61 1.67-4.83 4-5.65V4.26C5.55 5.15 3 8.27 3 12zm8 5h2v-2h-2v2z... |
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js | TimurTarasenko/actor-platform | import React from 'react';
import MyProfileActions from 'actions/MyProfileActions';
import LoginActionCreators from 'actions/LoginActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
import MyProfileModal from 'components/modals/MyProfile.react';
import ActorClient from 'utils/ActorClient';
... |
node_modules/react-router/es/IndexRoute.js | MaleSharker/Qingyan | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './InternalPropTypes';
var func = React.PropTypes.func;
/**
* An <IndexRoute> i... |
react/redux-start/counter/src/index.js | kobeCan/practices | import { createStore } from 'redux';
import React from 'react';
import ReactDOM from 'react-dom';
import Counter from './components/Counter';
import counter from './reducers';
function render () {
ReactDOM.render(
<Counter value={store.getState()} increment={() => store.dispatch({type: 'INCREMENT'})} decrement={()... |
src/svg-icons/action/settings-remote.js | xmityaz/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... |
client/components/Footer/FooterComponent.js | lvarayut/relay-fullstack | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import { Footer as MDLFooter, FooterSection } from 'react-mdl';
import styles from './Footer.scss';
export default class Footer extends React.Component {
static propTypes = {
viewer: PropTypes.object.isRequired,
};
render() {
return... |
src/components/visibility-sensor.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, o... |
Components/ProjectList.js | colm2/mizen | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ListView,
DeviceEventEmitter,
TouchableOpacity,
Platform,
Button
} from 'react-native';
import { connect, Provider } from 'react-redux';
import ProjectRowItem from './ProjectRowItem';
import SearchBar from 'react-native-sea... |
lib/react/components/testUtilities/ComponentTestUnit.js | bwyap/ptc-amazing-g-race | import React from 'react';
import PropTypes from 'prop-types';
import '../../scss/tests/_component-test.scss';
class ComponentTestUnit extends React.Component {
static propTypes = {
state: PropTypes.string.isRequired,
description: PropTypes.string
}
render() {
return (
<div className='test-component-un... |
src/index.js | DimaRGB/twi-cool | import React from 'react'
import ReactDOM from 'react-dom'
import App from './components/App'
import CreatePost from './components/CreatePost'
import CreateUser from './components/CreateUser'
import LoginUser from './components/LoginUser'
import { Router, Route, browserHistory } from 'react-router'
import ApolloClient,... |
src/components/Routes/test.js | lewiscowper/rss-reader | /*
ava is a test framework, here we pull it's
default import, which has the main API
attached.
*/
import test from 'ava';
/*
We need React whenever we want to compile some
JSX, which we do here.
*/
import React from 'react';
/*
This is the shallow renderer from airbnb/enzyme.
It allows us to render a sp... |
client/src/javascript/components/sidebar/SettingsButton.js | stephdewit/flood | import {defineMessages, injectIntl} from 'react-intl';
import React from 'react';
import SettingsIcon from '../icons/SettingsIcon';
import Tooltip from '../general/Tooltip';
import UIActions from '../../actions/UIActions';
const MESSAGES = defineMessages({
settings: {
id: 'sidebar.button.settings',
defaultM... |
src/admin/index.js | conarwelsh/police-security-expo | import React from 'react' // eslint-disable-line no-unused-vars
import { render } from 'react-dom'
import router from './router'
render(
router,
document.getElementById('root'),
) |
packages/material-ui-icons/src/LastPage.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let LastPage = props =>
<SvgIcon {...props}>
<path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z" />
</SvgIcon>;
LastPage = pure(LastPage);
LastPage.muiName = 'SvgIcon';
export default Las... |
priv/frontend/index.js | losch/phoestit | 'use strict';
import 'babel-core/polyfill';
import React from 'react';
import ReactDom from 'react-dom';
import { Router, Route } from 'react-router'
import { combineReducers, createStore } from 'redux';
import { Provider } from 'react-redux';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import... |
spec/components/chip.js | rahultaglr/taglr-toolbox | import React from 'react';
import Avatar from '../../components/avatar';
import Chip from '../../components/chip';
import style from '../style';
class ChipTest extends React.Component {
state = {
deleted: false
};
handleDeleteClick = () => {
this.setState({
deleted: true
});
};
render () ... |
public/js/10C.js | ritchieanesco/frontendmastersreact | /* Abstract reusable component and loop through data */
import React from 'react'
import preload from '../../public/data.json'
import ShowCard from './10D'
const Search = React.createClass({
render () {
return (
<div className='search'>
{ /* <pre><code>{JSON.stringify(preload, null, 4)}</code></pr... |
src/scenes/home/scholarship/scholarships.js | tal87/operationcode_frontend | import React, { Component } from 'react';
import { getScholarships } from 'shared/utils/apiHelper';
import Section from 'shared/components/section/section';
import Preview from './preview/preview.js';
import styles from './scholarships.css';
class Scholarships extends Component {
state = {
scholarships: null
}... |
src/svg-icons/device/location-searching.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceLocationSearching = (props) => (
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-... |
src/parser/warrior/arms/modules/talents/DefensiveStance.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/talents/warrior';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatNumber, formatThousands } from 'common/format';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import StatisticBox, { STAT... |
pootle/static/js/shared/components/FormCheckedInput.js | pavels/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
const FormCheckedInput = Reac... |
docs/app/Examples/views/Statistic/Types/StatisticExampleGroupSize.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Statistic } from 'semantic-ui-react'
const items = [
{ label: 'Faves', value: '22' },
{ label: 'Views', value: '31,200' },
{ label: 'Members', value: '22' },
]
const StatisticExampleGroupSize = () => (
<div>
<Statistic.Group items={items} size='mini' />
<Statistic.Gr... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | sgput/portfolio-wptheme | 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'));
|
js/App/Components/Location/LocationDetails/Details.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
18-react-router-redux/src/components/home.js | iproduct/course-node-express-react | import React, { Component } from 'react';
import { connect } from 'react-redux';
@connect()
export default class Home extends Component {
render() {
return (
<h2>Home</h2>
);
}
}
|
react-native-demo/Zebreto/src/components/NormalText.js | zhangjunhd/react-examples | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
import {fonts, scalingFactors} from './../styles/fonts';
import Dimensions from 'Dimensions';
let {width} = Dimensions.get('window');
class NormalText extends Component {
static displayName = 'NormalText';
rend... |
map/src/containers/Details/components/InitiativeDescription.js | teikei/teikei | import React from 'react'
import PropTypes from 'prop-types'
import i18n from '../../../i18n'
import BadgesList from './BadgesList'
const GoalItem = (goal) => <li key={goal}>{goal}</li>
const InitiativeDescription = ({ feature }) => {
const {
properties: { goals },
} = feature
return (
<div>
<ul>... |
packages/cf-component-icon/src/reactsvgs/List.js | jroyal/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
const List = ({ className, label }) => (
<svg
className={className}
aria-label={label}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
>
<rect x="1.589" y="2.539" width="1.98" height="1.98" />
<rect x="5.425" y="2.539" wi... |
demo/components/table/LoaderDemo.js | f0zze/rosemary-ui | import React from 'react';
const LoaderDemo = (props) => {
return (
<div>
Loading...
</div>
);
};
export default LoaderDemo;
|
test/integration/client-navigation/pages/forwardRef-component.js | azukaru/next.js | import React from 'react'
export default React.forwardRef((props, ref) => (
<span {...props} forwardedRef={ref}>
This is a component with a forwarded ref
</span>
))
|
src/components/wallet/NetworkInfo.js | whphhg/vcash-ui | import React from 'react'
import { translate } from 'react-i18next'
import { inject, observer } from 'mobx-react'
import { humanReadable } from '../../utilities/common.js'
@translate(['common'])
@inject('gui', 'wallet')
@observer
class NetworkInfo extends React.Component {
constructor(props) {
super(props)
t... |
react-flux-mui/js/material-ui/src/svg-icons/device/developer-mode.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceDeveloperMode = (props) => (
<SvgIcon {...props}>
<path d="M7 5h10v2h2V3c0-1.1-.9-1.99-2-1.99L7 1c-1.1 0-2 .9-2 2v4h2V5zm8.41 11.59L20 12l-4.59-4.59L14 8.83 17.17 12 14 15.17l1.41 1.42zM10 15.17L6.83 12 1... |
modules/RouteUtils.js | rubengrill/react-router | import React from 'react'
import warning from 'warning'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function checkPropTypes(componentName, p... |
src/js/components/icons/base/StandardsMultimedia.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
docs/app/Examples/modules/Dropdown/Types/DropdownExampleSearchInMenu.js | ben174/Semantic-UI-React | import React from 'react'
import { Dropdown, Input } from 'semantic-ui-react'
import { tagOptions } from '../common'
const DropdownExampleSearchInMenu = () => (
<Dropdown text='Filter Posts' floating labeled button className='icon'>
{/* <i class="filter icon"></i> */}
<Dropdown.Menu>
<Input icon='sear... |
docs/src/PageHeader.js | lo1tuma/react-bootstrap | import React from 'react';
const PageHeader = React.createClass({
render() {
return (
<div className='bs-docs-header' id='content'>
<div className='container'>
<h1>{this.props.title}</h1>
<p>{this.props.subTitle}</p>
</div>
</div>
);
}
});
export default Pag... |
src/Tab.js | react-materialize/react-materialize | import React from 'react';
import PropTypes from 'prop-types';
import Col from './Col';
// This is just a holder for the props and children for tab, thus
// there is no logic here.
const Tab = ({ children, idx, className }) => (
<Col id={`tab_${idx}`} s={12} className={className}>
{children}
</Col>
);
Tab.pro... |
angular-quickstart/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | tedlas/Learning | 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'));
|
src/containers/TrafficFine/DesDropdownRow.js | nyaayaIN/frontend | import React from 'react';
import DropdownButton from 'react-bootstrap/lib/DropdownButton';
import MenuItem from 'react-bootstrap/lib/MenuItem';
export default class DesDropdownRow extends React.Component {
// 66 115 20 , 236 236 236
render() {
let filteredCityText = 'All-India';
if(this.props.filteredCity)... |
src/components/About/About.js | hschueh/DeepTourGo | import React from 'react';
const About = () => (
<div>About</div>
);
export default About;
|
docs/src/app/components/pages/components/Drawer/ExampleSimple.js | spiermar/material-ui | import React from 'react';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import RaisedButton from 'material-ui/RaisedButton';
export default class DrawerSimpleExample extends React.Component {
constructor(props) {
super(props);
this.state = {open: false};
}
handl... |
src/svg-icons/communication/call-merge.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallMerge = (props) => (
<SvgIcon {...props}>
<path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/>
</SvgIcon>
);
CommunicationCallMerge... |
src/common/containers/builds.js | canonical-ols/build.snapcraft.io | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import BuildsList from '../components/builds-list';
import Notification from '../components/vanilla-modules/notification';
import { IconSpinner } from '../components/v... |
src/components/Icon/Icon.js | Bandwidth/shared-components | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import icons from './icons';
import get from 'extensions/themeGet';
const Icon = styled.i.withConfig({ displayName: 'Icon' })`
font-family: ${get('fonts.icon')};
font-size: inherit;
color: ${({ color }) => colo... |
Badmeat/src/components/common/SmallCard.js | jparr721/Badmeat | import React from 'react';
import { View, StyleSheet } from 'react-native';
const SmallCard = (props) => {
return (
<View style={styles.containerStyle}>
{props.children}
</View>
);
};
const styles = StyleSheet.create({
containerStyle: {
borderRadius: 2,
borderColor: '#000',
backgroundC... |
src/views/CategoryPage/index.js | khankuan/asset-library-demo | import React from 'react';
import { resolve, context } from 'react-resolver';
import AltContainer from 'alt/AltContainer';
import Component from './component';
@context('alt')
@resolve('', (props) => {
const alt = props.alt;
const store = alt.getStore('CategoryPage').getState();
if (store.fetchState === null ||... |
src/routes/admin/index.js | jtiscione/redux-chess | import React from 'react';
import Layout from '../../components/Layout';
const title = 'Admin Page';
const isAdmin = false;
export default {
path: '/admin',
async action() {
if (!isAdmin) {
return { redirect: '/login' };
}
const Admin = await require.ensure([], require => require('./Admin').d... |
MobileApp/mstudentApp/components/messageViews/messageCard/MessageHeader.js | FresnoState/mobilestudentintranet | import React, { Component } from 'react';
import {
Text,
View
} from 'react-native';
export default class MessageHeader extends Component {
constructor(props){
super(props);
}
getDateTimeString(timestamp){
var displayString = "";
var today = new Date();
var messageD... |
src/parser/demonhunter/havoc/modules/spells/azeritetraits/FuriousGaze.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { formatNumber, formatPercentage } from 'common/format';
import { calculateAzeriteEffects } from 'common/stats';
import ItemStatistic from 'interface/statistics/ItemStatistic';
import BoringSpellValueText from 'interface/statistics/components/Boring... |
src/components/ProjectDescription.js | computer-lab/salon94design.com | import React from 'react'
import styled from 'emotion/react'
import { sansfont } from '../layouts/emotion-base'
const Container = styled.div`
composes: ${sansfont};
font-size: 16px;
font-weight: 300;
line-height: 1.3;
& p {
margin-bottom: 20px;
}
`
export default ({ project }) => (
<Container dang... |
packages/node_modules/@webex/react-component-join-call-button/src/index.js | adamweeks/react-ciscospark-1 | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Button from '@webex/react-component-button';
import Timer from '@webex/react-component-timer';
import styles from './styles.css';
function JoinCallButton({callStartTime, onJoinClick}) {
return (
<div clas... |
Frontend/components/Challenges.js | TomGijselinck/aja | import React from 'react';
import { StyleSheet, Text, View, FlatList, SectionList } from 'react-native';
import { List, ListItem } from 'react-native-elements'
import Header from './Header.js'
import { connect } from 'react-redux'
import Screen from './Screen.js'
import colors from '../colors.js'
import commonstyle fro... |
addons/themes/massively/layouts/Single.js | rendact/rendact | import React from 'react';
import HeaderWrapper from '../includes/HeaderWrapper';
import Footer from '../includes/Footer';
import NavPanel from '../includes/NavPanel';
class Single extends React.Component {
componentDidMount(){
require("../css/main.css")
document.body.className = "";
}
render(){
ret... |
components/webrtc/presentationBroadcast.js | slidewiki/slidewiki-platform | import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom';
import { handleRoute, navigateAction} from 'fluxible-router';
import { provideContext } from 'fluxible-addons-react';
import { isEmpty } from '../../common';
import { Grid, Button, Popup, Label } from 'semantic-ui-react';
i... |
docs/client/components/pages/Focus/SimpleFocusEditor/colorBlockPlugin.js | koaninc/draft-js-plugins | import React from 'react';
const ColorBlock = ({
block, // eslint-disable-line no-unused-vars
blockProps, // eslint-disable-line no-unused-vars
customStyleMap, // eslint-disable-line no-unused-vars
customStyleFn, // eslint-disable-line no-unused-vars
decorator, // eslint-disable-line no-unused-vars
forceSe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.