path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/ColorBox/index.js | fatrossy/color_palette | import React, { Component } from 'react';
import ColorBar from '../ColorBar';
import ColorNameBar1 from '../ColorNameBar1';
import ColorNameBar2 from '../ColorNameBar2';
import { ColorBo } from './style';
function ColorBox (props) {
const { data } = props;
return (
<ColorBo>
<ColorBar data={data[1]} ... |
examples/05 Customize/Handles and Previews/index.js | konce/react-dnd | import React from 'react';
import Container from './Container';
export default class CustomizeHandlesAndPreviews {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/05%20Customize/Handles%20and%20Previews'>Browse the Source</a></b>
... |
src/imports/ui/builder/components/product/ProductRemovedOverlay.js | hwillson/meteor-recommendation-builder | import React from 'react';
import { Button } from 'react-bootstrap';
const ProductRemovedOverlay = ({ product }) => {
let overlay = null;
if (!product.enabled) {
overlay = (
<div className="product-removed-overlay">
<div className="item-removed">
<p>Item Removed</p>
<Button
... |
src/contentscript/tinymce/TinyMCEApp.js | emfmesquita/beyondhelp | import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
import './TinyMCEApp.scss';
import { MenuItem, Nav, NavDropdown, NavItem } from 'react-bootstrap';
import React, { Component } from 'react';
import C from "../../Constants";
import MessageService from "../../services/MessageSe... |
stories/Hits.stories.js | algolia/react-instantsearch | import React from 'react';
import PropTypes from 'prop-types';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import {
Hits,
Highlight,
Panel,
Snippet,
Configure,
} from 'react-instantsearch-dom';
import { connectHitInsights } from 'react-instantsearch-core';
... |
src/articles/2018-01-31-1st-Anniversary/TimelineItem.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
const TimelineItem = ({ title, date, children }) => (
<div className="panel">
<div className="date">
{date}
</div>
<div className="panel-heading">
<h2>{title}</h2>
</div>
<div className="panel-body">
{children}
<... |
js/components/poets/alandolsi/index.js | Rebaiahmed/Alchaaer |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Actions } from 'react-native-router-flux';
import { Image } from 'react-native';
import { Container, Header, Title, Content, Button, Icon, Left, Right,Card, CardItem, Text, Body,
List, ListItem,Thumbnail,InputGroup, Input ,Picker... |
src/svg-icons/image/loupe.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLoupe = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10h8c1.1 0 2-.9 2-2v-8c0-5.51-4.49-10-10-10zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.... |
src/applications/appeals/10182/content/issueSummary.js | department-of-veterans-affairs/vets-website | import React from 'react';
import { Link } from 'react-router';
import { contestableIssuesPath } from '../constants';
import { getSelected } from '../utils/helpers';
import { ShowIssuesList } from '../components/ShowIssuesList';
export const SummaryTitle = ({ formData }) => {
const issues = getSelected(formData);
... |
client/admin/settings/inputs/StringSettingInput.stories.js | iiet/iiet-chat | import { Field } from '@rocket.chat/fuselage';
import { action } from '@storybook/addon-actions';
import React from 'react';
import { StringSettingInput } from './StringSettingInput';
export default {
title: 'admin/settings/inputs/StringSettingInput',
component: StringSettingInput,
decorators: [
(storyFn) => <Fi... |
docs/app/Examples/modules/Rating/Variations/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const RatingVariationsExamples = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Size'
descript... |
src/svg-icons/device/wifi-tethering.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceWifiTethering = (props) => (
<SvgIcon {...props}>
<path d="M12 11c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 2c0-3.31-2.69-6-6-6s-6 2.69-6 6c0 2.22 1.21 4.15 3 5.19l1-1.74c-1.19-.7-2-1.97-2-3.45 0-2.21... |
app/components/Home.js | luketlancaster/github-notetaker | import React from 'react';
class Home extends React.Component {
render() {
return (
<h2 className="text-center">
Search by Github Username Above
</h2>
)
}
}
export default Home;
|
pollard/components/NavBar.js | spncrlkt/pollard | import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
class NavBar extends Component {
render() {
const {
viewSetlist,
} = this.props;
/**
* If we have an existing playlist for this session
* use that id in the nav link.
... |
frontend/src/InteractiveImport/Confirmation/ConfirmImportModalContent.js | lidarr/Lidarr | import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Alert from 'Components/Alert';
import Button from 'Components/Link/Button';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
import ModalBody from 'Components/Modal/ModalBody';
import ModalCon... |
src/components/PizzaList.js | wmaurer/frontend_pizza_react_redux | import React, { Component } from 'react';
import Pizza from './Pizza';
export default class PizzaList extends Component {
render() {
const { pizzas, actions } = this.props;
return (
<div className="mdl-layout__content pizzas-container">
{pizzas.map(pizza =>
... |
src/ProjectSix/ProjectSix.js | brz0/folio-v11 | import React from 'react';
import ReactTooltip from 'react-tooltip';
import Gallery from 'react-photo-gallery';
import LazyLoad from 'react-lazyload';
var Scroll = require('react-scroll');
var Link = Scroll.Link;
var Element = Scroll.Element;
var Events = Scroll.Events;
var scroll = Scroll.animateScroll;
var scroll... |
src/app/App.js | diegoangel/erp-frontend | import React from 'react';
import { Component } from 'react';
import 'stylesheets/main.scss';
/**
*
*
* @export
* @class App
* @extends {Component}
*/
export default class App extends Component {
componentWillMount() {
this.props.loadUserFromToken();
}
render() {
return (
<div className="co... |
src/components/PayoutDetail.js | ryanbaer/busy | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import _ from 'lodash';
import USDDisplay from './Utils/USDDisplay';
import { calculatePayout } from '../vendor/steemitHelpers';
const AmountWithLabel = ({ id, defaultMessage, nonzero, amount }) =>... |
src/frontend/forms/Invoice/form.js | Koleso/invoicer | import React from 'react';
import { Field, FieldArray, reduxForm } from 'redux-form';
import { browserHistory } from 'react-router';
import cx from 'helpers/classes';
import { subjectsForDropdown, subjectById } from 'helpers/subjects';
import dateFormat from 'dateformat';
// Notifications
import { actions as notifAct... |
example/example-react/src/components/Infos/Purchasable/PurchasableList.js | kesslerdev/quarkit | import React from 'react'
import PropTypes from 'prop-types'
import "@material/list/dist/mdc.list.css"
import { connect } from 'react-redux'
import {gameObjectSelectors} from '../../../selectors'
import Purchasable from './Purchasable'
const PurchasableList = ({ market, player }) => (
<ul className="mdc-list mdc-li... |
components/Camera.ios.js | kkwokwai22/snacktime | 'use strict';
import React, { Component } from 'react';
import {
Text,
Image,
TouchableHighlight,
View
} from 'react-native';
import Camera from 'react-native-camera';
import helpers from '../helpers/helpers.js';
var axios = require('axios');
import styles from '../styles.ios.js';
import GoogleResults from './G... |
modules/Lifecycle.js | chunwei/react-router | import React from 'react'
import invariant from 'invariant'
const { object } = React.PropTypes
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method
* to a component that may be used to cancel a transition or prompt
* the user for confirmation.
*
* On standard transitions, routerWillLeave receives ... |
src/BurgerNav.js | Lafinboy/react-burger-nav | import React from 'react'
import baseStyles from './baseStyles'
import BurgerIcon from './BurgerIcon'
import CrossIcon from './CrossIcon'
const BurgerNav = React.createClass({
propTypes: {
id: React.PropTypes.string,
isOpen: React.PropTypes.bool,
children: React.PropTypes.node
},
... |
www/src/components/search/SearchInput.js | TaitoUnited/taito-cli | import React from 'react';
import styled from '@emotion/styled';
import { connectSearchBox } from 'react-instantsearch-dom';
import { FiSearch } from 'react-icons/fi';
import { media } from '../../utils';
const SearchInput = ({ refine, ...rest }) => {
return (
<Form>
<FiSearch />
<Input
type... |
src/App.js | AdamB59/Klient | import React, { Component } from 'react';
import { postAPI } from "./service/api"
export default class App extends Component {
constructor(){
super();
this.state = {
username: "",
password: ""
}
}
_submit(e){
e.preventDefault();
postAPI("/user/login", {username : this.state.u... |
src/components/shared/stated-menu.js | quanglam2807/webcatalog | import React from 'react';
import PropTypes from 'prop-types';
import Menu from '@material-ui/core/Menu';
class StatedMenu extends React.Component {
constructor(props) {
super(props);
this.state = {
anchorEl: undefined,
open: false,
};
this.handleClick = this.handleClick.bind(this);
... |
src/Tooltip.js | xiaoking/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const Tooltip = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
/**
* An html id attribute, necessary for accessibility
* @... |
assets/jqwidgets/demos/react/app/grid/fluidsize/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
render() {
let source =
{
localdata: generatedata(500),
datafields:
[
... |
src/svg-icons/action/settings-power.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsPower = (props) => (
<SvgIcon {...props}>
<path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-... |
src/ThreeRender/story.js | appier/react-component-template | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import ThreeRender from './ThreeRender.js';
const stories = storiesOf('Three', module);
stories.add('Default', () => (
<ThreeRender />
));
|
examples/Api.js | bluespore/react-big-calendar | import React from 'react';
import metadata from 'component-metadata!react-big-calendar/Calendar';
import transform from 'lodash/object/transform';
function displayObj(obj){
return JSON.stringify(obj, null, 2).replace(/"|'/g, '')
}
let capitalize = str => str[0].toUpperCase() + str.substr(1);
let cleanDocletValue = ... |
qbot/ui/components/shape.js | dennisdunn/botlab | import React from 'react'
/**
* A drawable shape.
*
* Props:
* styles={fillStyle:'blue'}
* eventArgs={action:do_something, point:{r:0, theta:0}}
*/
export default class Shape extends React.Component {
constructor(props) {
super(props)
this.getPath = this.getPath.bind(this)
console.l... |
src/interface/common/DragScroll.js | fyruna/WoWAnalyzer | /**
* Created by joe on 16/9/2.
* Source: https://raw.githubusercontent.com/qiaolb/react-dragscroll/master/src/DragScroll.jsx
* This was cleaned up. A lot.
*/
import React from 'react';
import PropTypes from 'prop-types';
class DragScroll extends React.PureComponent {
static propTypes = {
children: PropType... |
ui/src/containers/VisualiseForm/StatementsForm/AxesEditor/QueryEditor.js | LearningLocker/learninglocker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Map, List, fromJS } from 'immutable';
import Switch from 'ui/components/Material/Switch';
import QueryBuilder from 'ui/containers/QueryBuilder';
export default class QueryEditor extends Component {
static propTypes = {
timezon... |
src/svg-icons/device/screen-lock-rotation.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenLockRotation = (props) => (
<SvgIcon {...props}>
<path d="M23.25 12.77l-2.57-2.57-1.41 1.41 2.22 2.22-5.66 5.66L4.51 8.17l5.66-5.66 2.1 2.1 1.41-1.41L11.23.75c-.59-.59-1.54-.59-2.12 0L2.75 7.11c-.59... |
src/svg-icons/av/queue-music.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvQueueMusic = (props) => (
<SvgIcon {...props}>
<path d="M15 6H3v2h12V6zm0 4H3v2h12v-2zM3 16h8v-2H3v2zM17 6v8.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5z"/>
</SvgIcon>
);
AvQu... |
test/regressions/tests/Badge/Badge.js | AndriusBil/material-ui | // @flow
import React from 'react';
import Badge from 'material-ui/Badge';
import Icon from 'material-ui/Icon';
export default function SimpleBadge() {
return (
<Badge badgeContent={1} color="primary">
<Icon>mail</Icon>
</Badge>
);
}
|
src/pages/minimum/Prim/Prim.js | hyy1115/react-redux-webpack3 | import React from 'react'
class Prim extends React.Component {
render() {
return (
<div>Prim</div>
)
}
}
export default Prim |
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | hak59/hak59.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/javascript/mastodon/features/favourited_statuses/index.js | hyuki0000/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites';
import Column from '../ui/components/column';
import ColumnHeade... |
javascript/components/modal.js | kdoran/moriana-react | import React from 'react'
import ClickOutHandler from 'react-onclickout'
export default function Modal ({ show, onClose, heading, children }) {
return show
? <ClickOutHandler onClickOut={onClose}>
<div className='modal'>
<div>
<button className='close' onClick={onClose}><span>×</span></bu... |
app/javascript/flavours/glitch/components/status.js | vahnj/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import StatusPrepend from './status_prepend';
import StatusHeader from './status_header';
import StatusIcons from './status_icons';
import StatusContent from './status_content';
import StatusAction... |
components/RSVPForm/AttendanceInfo.js | jamesrf/weddingwebsite | import React from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group' // ES6
import s from './RSVPForm.css';
import TextField from '../TextField/TextField';
class AttendanceInfo extends React.Component {
constructor(props){
super(props);
this.state = {isAttending: true};
thi... |
src/components/video_list.js | stewarea/React-Youtube | import React from 'react';
import VideoListItem from './video_list_item'
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return (<VideoListItem
onVideoSelect={props.onVideoSelect}
key={video.etag}
video={video} />
)
});
return (
<ul className="col-md... |
packages/react-interactions/events/src/dom/PressLegacy.js | flarnie/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {
ReactDOMResponderEvent,
ReactDOMResponderContext,
PointerType,
} from 'shared/ReactDOMTypes';
impo... |
app/javascript/mastodon/features/ui/components/bundle.js | Nyoho/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const emptyComponent = () => null;
const noop = () => { };
class Bundle extends React.PureComponent {
static propTypes = {
fetchComponent: PropTypes.func.isRequired,
loading: PropTypes.func,
error: PropTypes.func,
children: PropTypes.fu... |
aplicaciones_informaticas/frontendCentrosSalud/src/components/Feed/Feed.js | awainer/7539 | import React, { Component } from 'react';
import { hospitalService, feedService } from '../../services';
import Dropdown from 'react-toolbox/lib/dropdown';
import styles from './styles.css'
let data = [
{
key: "dataSource1",
values: [
{label: "A", value: 3},
{label: "B", value: 4}
]
},
... |
app/jsx/shared/components/Paginator.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
src/App.js | MichelLosier/cardspace | import React, { Component } from 'react';
import { BrowserRouter as Router } from 'react-router-dom';
import './App.css';
import Main from './components/main.component';
class App extends Component {
render() {
return (
<div className="App">
<Router>
<Main/>
</Router>
... |
src/icons/Forward10Icon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class Forward10Icon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M8 26c0 8.8 7.2 16 16 16s16-7.2 16-16h-4c0 6.6-5.4 12-12 12s-12-5.4-12-12 5.4-12 12-12v8l10-10L24 2v8c-8... |
app/javascript/mastodon/components/autosuggest_textarea.js | imas/mastodon | import React from 'react';
import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container';
import AutosuggestEmoji from './autosuggest_emoji';
import AutosuggestHashtag from './autosuggest_hashtag';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from... |
client/components/DeleteChannelWarning.js | iiet/iiet-chat | import React from 'react';
import { Button, ButtonGroup, Icon, Modal } from '@rocket.chat/fuselage';
import { useTranslation } from '../contexts/TranslationContext';
const DeleteChannelWarning = ({ onConfirm, onCancel, ...props }) => {
const t = useTranslation();
return <Modal {...props}>
<Modal.Header>
<Icon... |
docs/src/app/components/pages/components/IconButton/ExampleSimple.js | pancho111203/material-ui | import React from 'react';
import IconButton from 'material-ui/IconButton';
const IconButtonExampleSimple = () => (
<div>
<IconButton iconClassName="muidocs-icon-custom-github" />
<IconButton iconClassName="muidocs-icon-custom-github" disabled={true} />
</div>
);
export default IconButtonExampleSimple;
|
apps/wmb/priv/www/static/js/src/containers/app.js | black13ua/wmb | import React, { Component } from 'react';
import { Button, Layout, NavDrawer, Panel, Sidebar } from 'react-toolbox';
import isBrowser from 'react-toolbox/lib/utils/is-browser';
import breakpoints from 'react-toolbox/lib/utils/breakpoints';
import { getViewport } from 'react-toolbox/lib/utils/utils';
import ScrollUp fro... |
frontend/component/Footer.js | hhmpro/node-practice-project | import React from 'react';
const footerStyle = {
marginTop:50,
padding:20
};
export default class Footer extends React.Component {
render() {
return (
<div className="text-center" style={footerStyle}>
@copy; CopyRight Node.js实战
</div>
)
}
} |
src/svg-icons/toggle/star-half.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleStarHalf = (props) => (
<SvgIcon {...props}>
<path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.... |
src/js/components/LayeredAreaChart.js | lianwangtao/shanelian.com | import React, { Component } from 'react';
import Box from 'grommet/components/Box';
import Legend from 'grommet/components/Legend';
import Chart, { Area, Base, Layers, Marker,
HotSpots } from 'grommet/components/chart/Chart';
export default class LayeredAreaChart extends Component {
constructor(props) {
supe... |
ui-react/src/components/Signin.js | agliznetsov/sputnik | import React from 'react';
import userService from '../services/UserService';
class Signin extends React.Component {
constructor() {
super();
this.state = {};
this.handleInputChange = this.handleInputChange.bind(this);
}
handleInputChange(event) {
const target = event.targ... |
src/svg-icons/navigation/last-page.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationLastPage = (props) => (
<SvgIcon {...props}>
<path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/>
</SvgIcon>
);
NavigationLastPage = pure(NavigationLastPage);
NavigationLastPage.di... |
src/routes/lossSection/index.js | goldylucks/adamgoldman.me | import React from 'react'
import GriefSection from './GriefSection'
import Layout from '../../components/Layout'
async function action({ params }) {
const path = `/grief/${params.section}`
const section = await import(`./${params.section}.js`)
.then(module => module.default) // use an object from `export def... |
src/search-filter-box.js | MortalFlesh/react-search-filter-example | import React from 'react';
import * as store from './store';
import * as actions from './actions';
import SearchFilter from './search-filter';
import SearchFilterTitle from './search-filter-title';
import state from './state';
import {reloadFilters as load} from './state';
import Loading from './loading';
load('./api/... |
src/svg-icons/action/settings-input-composite.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsInputComposite = (props) => (
<SvgIcon {...props}>
<path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.... |
src/not-found.react.js | smashercosmo/redux-react-router-issue | import React from 'react';
export default class NotFound extends React.Component {
static propTypes = {
test: React.PropTypes.object.isRequired
};
render() {
return (
<div>
Not Found
{this.props.test.hello}
</div>
);
}
} |
examples/pagination-controlled/src/App.js | react-tools/react-table | import React from 'react'
import styled from 'styled-components'
import { useTable, usePagination } from 'react-table'
import makeData from './makeData'
const Styles = styled.div`
padding: 1rem;
table {
border-spacing: 0;
border: 1px solid black;
tr {
:last-child {
td {
borde... |
src/client/components/MessagesSent.js | djmill0326/node-random-stuff | import React from 'react';
import {connect} from 'react-redux';
class MessagesSent extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="message-count">
<span>You have sent {this.props.messagesSent} message{this.props.messagesSent === 1 ? '... |
src/js/components/icons/base/Navigate.js | linde12/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... |
src/public/components/notification/default/index.js | Lunik/tcloud | import React from 'react'
import classNames from 'classname'
import { InfoIcon, WarningIcon, ErrorIcon } from '../../image/svg'
export default class Notification extends React.Component {
constructor (props) {
super(props)
this.state = {}
this.initState(props)
if (this.state.timeout) {
this.... |
js/components/Timelines/Navigation.js | furgat/sabertoot | 'use strict';
import React from 'react';
export default class Navigation extends React.Component {
render() {
return (
<nav className="navigation">
<button className="user-button"></button>
<button className="toot-button"></button>
<button className="settings-button"></button>
... |
Components/Display.js | Some-Subhra/MovieSearch-React | import React from 'react';
class Display extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
data :[],
error:""
};
};
componentDidMount() {
{this.props.source.Search ? this.state.data = this.props.source.Search: t... |
src/parser/shaman/restoration/modules/talents/Downpour.js | FaideWW/WoWAnalyzer | import React from 'react';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import StatisticListBoxItem from 'interfac... |
client/src/components/TradeHistory/TradeHistory.js | moxon6/html5-training | import React from 'react'
import SectionHeader from 'components/shared/SectionHeader'
import ScrollTable from 'components/shared/ScrollTable/ScrollTable'
import './TradeHistory.css'
export default() => (
<div className='flex-columns trade-history'>
<SectionHeader>Trade History</SectionHeader>
<ScrollTable>
... |
packages/netlify-cms-core/src/components/Workflow/WorkflowCard.js | netlify/netlify-cms | import React from 'react';
import PropTypes from 'prop-types';
import { css } from '@emotion/core';
import styled from '@emotion/styled';
import { translate } from 'react-polyglot';
import { Link } from 'react-router-dom';
import { components, colors, colorsRaw, transitions, buttons } from 'netlify-cms-ui-default';
co... |
src/components/IconButton/IconButton.js | fkn/ndo | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Glyphicon } from 'react-bootstrap';
const IconButton = ({ onClick, glyph, ...rest }) => (
<Button onClick={onClick} {...rest}>
<Glyphicon glyph={glyph} />
</Button>
);
IconButton.propTypes = {
onClick: PropTypes.func.isRequired,... |
src/components/MainPage/Maps/MapBox/MapBoxContainer.js | coolshare/ReactReduxStarterKit | import React, { Component } from 'react';
import ReactMapboxGl, { Layer, Feature } from "react-mapbox-gl";
export default class MapBoxContainer extends React.Component {
render() {
return (
<ReactMapboxGl
style="mapbox://styles/mapbox/streets-v8"
accessToken="pk.eyJ1IjoiY29vbHNoYX... |
examples/redux/src/js/components/CommentForm.js | cpsubrian/hipley | import React from 'react'
import autobind from 'autobind-decorator'
@autobind
class CommentForm extends React.Component {
static propTypes = {
addComment: React.PropTypes.func
}
state = {
name: '',
message: ''
}
onChangeName (e) {
this.setState({name: e.currentTarget.value})
}
onChang... |
src/interface/report/Results/About.js | FaideWW/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { Trans, Plural } from '@lingui/macro';
import isLatestPatch from 'game/isLatestPatch';
import ReadableList from 'interface/common/ReadableList';
import Warning from 'interface/common/Alert/Warning';
import Contributor from 'interface/contributor/Bu... |
src/components/body/landingpage.js | ericaporter/trending-hashtags | import React from 'react';
import Results from './results';
import Map from './map';
class LandingPage extends React.Component {
render() {
return (
<div className="container">
<div className="row">
<div className="col-md-8">
<div className="jumbotron awf-header">
... |
packages/wix-style-react/src/Proportion/docs/index.story.js | wix/wix-style-react | import React from 'react';
import {
header,
tabs,
tab,
description,
importExample,
title,
divider,
example,
playground,
api,
testkit,
} from 'wix-storybook-utils/Sections';
import { storySettings } from './storySettings';
import Proportion from '..';
import * as examples from './examples';
cons... |
packages/material-ui-icons/src/ArrowUpward.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" /></g>
, 'ArrowUpward');
|
app/pages/logisticsPage.js | shiyunjie/scs | /**
* Created by shiyunjie on 16/12/6.
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TextInput,
ActivityIndicator,
ActivityIndicatorIOS,
ProgressBarAndroid,
Platform,
NativeAppEventEmitter,
TouchableOpacity,
Image,
} from 'react-native';
im... |
src/api/Animated/createAnimatedComponent.js | omeid/react-native-mock | import React from 'react';
function createAnimatedComponent(Component) {
var refName = 'node';
class AnimatedComponent extends React.Component {
render() {
return (
<Component
{...this._propsAnimated.__getValue()}
ref={refName}
/>
);
}
}
return Animated... |
src/Introduction.js | beaudavenport/regex-cafe | import React from 'react';
import NextLessonButton from './NextLessonButton';
class Introduction extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="intro">
<div className="intro-cell">
<div className="row">
<div classNam... |
src/react-view-models.js | BigAB/can-react | /* eslint react/prop-types: 0 */
import React from 'react';
import compute from 'can-compute';
import DefineMap from "can-define/map/";
export function connect( MapToProps, ComponentToConnect ) {
if ( typeof MapToProps !== 'function' ) {
throw new Error('Setting the viewmodel to an instance or value is not supp... |
packages/node_modules/@ciscospark/react-component-button/src/index.js | bzang/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from '@ciscospark/react-component-icon';
import styles from './styles.css';
export default function Button(props) {
const {
accessibilityLabel,
buttonClassName,
children,
label,
label... |
src/partials/share-buttons.js | getinsomnia/insomnia.rest | import React from 'react';
import Link from '../components/link';
export const Twitter = ({title}) => (
<Link to="#" onClick={e => {
e.preventDefault();
const href = `http://twitter.com/share?url=${encodeURIComponent(window.location.href)}&text=${encodeURIComponent(title || document.title)}&via=GetInsomnia`;... |
src/svg-icons/av/fiber-dvr.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberDvr = (props) => (
<SvgIcon {...props}>
<path d="M17.5 10.5h2v1h-2zm-13 0h2v3h-2zM21 3H3c-1.11 0-2 .89-2 2v14c0 1.1.89 2 2 2h18c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zM8 13.5c0 .85-.65 1.5-1.5 1.5H3V9h3.5c.8... |
stories/examples/NavbarProps.js | reactstrap/reactstrap | import React from 'react';
import {
Navbar,
NavbarToggler,
NavbarBrand,
NavbarText
} from 'reactstrap';
import Props from './Props';
const Example = () => (
<Props components={[Navbar, NavbarToggler, NavbarBrand, NavbarText]} />
);
export default Example;
|
src/Form/Field.js | MGrin/mgr-form-react | import React from 'react';
import PropTypes from 'prop-types';
const Field = ({ name, label, value, error, disabled, hidden, className, render, validate, onValueChange, ...fieldRendererProps }) => {
const fieldNameAsCss = name.replace(/\s/g, '');
const Input = render;
return (
<div className={`${className} ... |
src/svg-icons/action/reorder.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionReorder = (props) => (
<SvgIcon {...props}>
<path d="M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"/>
</SvgIcon>
);
ActionReorder = pure(ActionReorder);
ActionReorder.displayName = 'Action... |
demo/static/js/src/components/data.js | jonashagstedt/django-jsx | import React from 'react';
import wildjs from 'wildjs'
import Nav from './nav'
export default class Data extends React.Component {
constructor (props) {
super(props);
this.state = props;
this.click = this.click.bind(this);
}
componentDidMount() {
if (this.state.data.data_l... |
src/sidemenu/SideMenu.js | kosiakMD/react-native-elements | /*eslint-disable no-console */
import React from 'react';
import SideMenu from 'react-native-side-menu';
const Menu = props => {
console.warn(
`Warning: SideMenu has been deprecated and will be removed in a future version of React Native Elements. For a complete navigation solution that includes SideMenu(Drawer)... |
app.js | rpowis/pusscat.lol | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
import Location from '.... |
app/components/pipeline/teams/Index/index.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import DocumentTitle from 'react-document-title';
import Emojify from '../../../shared/Emojify';
import Panel from '../../../shared/Panel';
import Chooser from './chooser';
import Row from './row';
class PipelineT... |
Depmon.Server.Portal.React/app/views/report.js | devmankz/Depmon | import React from 'react';
import Component from '../base/component';
import Layout from './layout';
export default class ReportsView extends Component {
render () {
return <Layout>
<div className="pure-u-1">Reports</div>
</Layout>;
}
}
|
src/components/footer/footer.js | woshisbb43/coinMessageWechat | import React from 'react';
import classNames from '../../utils/classnames';
/**
* consists of `footer_links`, `footer_link` and `footer_text`
*
*/
const Footer = (props) => {
const { className, children, ...others } = props;
const cls = classNames({
'weui-footer': true,
[className]: classNam... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/grid-on.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageGridOn = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4... |
stories/examples/AlertColors.js | reactstrap/reactstrap | import React from 'react';
import { Alert } from 'reactstrap';
import { ArgsTable } from '@storybook/addon-docs';
const Example = (props) => {
return (
<div>
<Alert color="primary">
This is a primary alert — check it out!
</Alert>
<Alert color="secondary">
This is a secondary al... |
src/server/renderer.js | rentpath/react-redux-starter-kit | import React from 'react'
// Provider makes the store available to all connect() calls in the
// component hierarchy below. (connect() is what connects a React
// component to a Redux store.)
import { Provider } from 'react-redux'
// match is a function that compares a given path to a set of routes
// and calls your ... |
src/routes.js | wasong/hackr_matchr | import React from 'react'
import { Router, Route, browserHistory } from 'react-router'
import { Provider } from 'react-redux'
import AuthService from './utils/auth'
import App from './components/App'
import Auth from './components/Auth'
import Login from './components/Login'
import config from '../config/auth'
const ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.