path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/ModalTitle.js | blue68/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalTitle extends React.Component {
render() {
return (
<h4
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{ this.props.children }
</h4>
);
}
}
ModalTitle.pr... |
src/js/components/networkConfiguration/NetworkConfiguration.js | knowncitizen/tripleo-ui | /**
* Copyright 2018 Red Hat Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
src/app/routes/Counter/components/Counter.js | react-map/lr-map | import React from 'react'
import { IndexLink, Link } from 'react-router';
import Subheader from 'material-ui/Subheader';
import IconButton from 'material-ui/IconButton';
import NavigationClose from 'material-ui/svg-icons/hardware/keyboard-arrow-left';
import Nav from '../../../components/Nav/Nav';
import styles from ... |
docs/src/examples/modules/Accordion/Advanced/AccordionExampleNested.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Accordion } from 'semantic-ui-react'
const level1Panels = [
{ key: 'panel-1a', title: 'Level 1A', content: 'Level 1A Contents' },
{ key: 'panel-ba', title: 'Level 1B', content: 'Level 1B Contents' },
]
const Level1Content = (
<div>
Welcome to level 1
<Accordion.Accordi... |
src/scenes/About/index.js | jmahc/that-react-app-you-want | import React from 'react'
import './styles.css'
export default function About() {
return (
<React.Fragment>
<div className="About">
<h2>About</h2>
</div>
</React.Fragment>
)
}
|
src/routes/Home/components/MediaList/MediaItem.js | imrenagi/rojak-web-frontend | import React from 'react'
import Chart from 'components/charts/Chart'
import { Card, Grid, Image, Button, Statistic } from 'semantic-ui-react'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
import * as Actions from './../../actions'
import... |
react-i18n-example/src/index.js | backpaper0/sandbox | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this come... |
src/components/user-avatar/index.js | datea/datea-webapp-react | import React from 'react';
import PropTypes from 'prop-types';
import DefaultAvatar from '../misc/default-avatar';
import Avatar from '@material-ui/core/Avatar';
import {getImgSrc} from '../../utils';
const UserAvatar = ({src, size}) =>
src ? <Avatar src={getImgSrc(src)} style={{width: size, height: size}} /> : <Def... |
modules/Router.js | djkirby/react-router | import invariant from 'invariant'
import React from 'react'
import createTransitionManager from './createTransitionManager'
import { routes } from './InternalPropTypes'
import RouterContext from './RouterContext'
import { createRoutes } from './RouteUtils'
import { createRouterObject, assignRouterState } from './Route... |
client/react/src/components/common/ListViewBase.js | peasy/peasy-js-samples | import React from 'react';
import toastr from 'toastr';
class ListViewBase extends React.Component {
constructor(props, context) {
super(props, context);
}
_destroyAction(id) {}
destroy(id) {
var self = this;
return function() {
return self.props.dispatch(self._destroyAction(id))
.... |
MARVELous/client/src/js/components/register/registerView.js | nicksenger/StackAttack2017 | import React, { Component } from 'react';
export default class RegisterView extends Component {
constructor(props) {
super(props);
this.state = {
alias: '',
password: ''
};
this.handleSubmit = this.handleSubmit.bind(this);
this.handleAliasChange = this.handleAliasChange.bind(this);
... |
src/components/styles/colors.stories.js | austinknight/ui-components | import React from 'react';
import { storiesOf, action } from '@storybook/react';
import styled from 'styled-components';
import _ from 'lodash';
import { colors, white, black, gray, darkBlue, red, orange, blue, tron, green } from './colors';
import { typography } from './typography';
import { boxShadows } from './boxS... |
ui/src/containers/SideNav/index.js | LearningLocker/learninglocker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { List, Map } from 'immutable';
import Link from 'ui/containers/Link';
import mapValues from 'lodash/mapValues';
import { connect } from 'react-redux';
import { routeNodeSelector } from 'redux-router5';
import { compose, withProps } fr... |
app/components/Admin.js | daiyingheng/dayinhen | /**
* Created by daiyingheng on 16/9/4.
*/
import React from 'react';
import Sidebar from './Sidebar';
import Icon from './icon';
class Admin extends React.Component {
render() {
return (
<div className="admin">
<Icon />
<Sidebar />
{this.props.children || "Hello"}
</div>
... |
app/javascript/mastodon/components/autosuggest_textarea.js | amazedkoumei/mastodon | import React from 'react';
import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container';
import AutosuggestEmoji from './autosuggest_emoji';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { isRtl } from '../rtl';
import Im... |
app/routes.js | RichAbrahams/electron-project | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import HomePage from './containers/Homepage/index';
import AddConsignment from './containers/AddConsignment/index';
import Orders from './containers/Orders/index';
import Products from './containers/Products... |
app/components/main/clockWeatherDisplay.js | fireaxil/smartHome | import React from 'react'
import Typography from 'material-ui/Typography'
import { connect } from 'react-redux'
import { withStyles } from 'material-ui'
import { convertKelvinToFahrenheit } from '../../misc/utils'
const styles = theme => ({
})
class ClockWeatherDisplay extends React.Component {
convertTemperature ... |
src/svg-icons/notification/confirmation-number.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationConfirmationNumber = (props) => (
<SvgIcon {...props}>
<path d="M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2... |
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js | berserkertdl/actor-platform | import _ from 'lodash';
import React from 'react';
import { Styles, RaisedButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import ContactStore from 'stores/ContactStore';
import ContactActionCreators from 'actions/ContactActionCreators';
import AddContactStore from 'stores/AddContactStore'... |
node_modules/react-native-vector-icons/lib/tab-bar-item-ios.js | RahulDesai92/PHR | /* eslint-disable react/no-unused-prop-types */
import isEqual from 'lodash/isEqual';
import pick from 'lodash/pick';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { TabBarIOS } from './react-native';
export default function createTabBarItemIOSComponent(
IconNamePropType,
get... |
src/app/core/atoms/icon/icons/user-female.js | blowsys/reservo | import React from 'react'; const UserFemale = (props) => <svg {...props} viewBox="0 0 48 48"><g><path d="M14.2,0C15.3,0 16.1,0.19999981 16.1,0.19999981 21.9,-0.40000057 22.9,9.7999998 22.9,9.7999997 22.9,10.5 25,17 25,17 25.8,18.5 23.5,18.7 23.5,18.7 24.3,19.9 21.2,20.599999 20.2,20.8L20.1,20.8C21.099999,24 27.7,25.7 2... |
src/Popover.js | Azerothian/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import FadeMixin from './FadeMixin';
const Popover = React.createClass({
mixins: [BootstrapMixin, FadeMixin],
propTypes: {
placement: React.PropTypes.oneOf(['top', 'right', 'bottom', 'left']),
po... |
docs/src/app/components/pages/components/Divider/ExampleMenu.js | barakmitz/material-ui | import React from 'react';
import Divider from 'material-ui/Divider';
import {Menu, MenuItem} from 'material-ui/Menu';
const style = {
// Without this, the menu overflows the CodeExample container.
float: 'left',
};
const DividerExampleMenu = () => (
<Menu desktop={true} style={style}>
<MenuItem primaryText... |
public/js/components/profile/LookingFor.react.js | rajikaimal/Coupley | import React from 'react';
import List from 'material-ui/lib/lists/list';
import ListItem from 'material-ui/lib/lists/list-item';
import Divider from 'material-ui/lib/divider';
import Colors from 'material-ui/lib/styles/colors';
import IconButton from 'material-ui/lib/icon-button';
import MoreVertIcon from 'material-ui... |
ngiiedu-client/src/components/admin/user/MainContainer.js | jinifor/branchtest | import React from 'react';
import List from './List';
import UserPopup from './UserPopup';
import Search from './Search';
class MainContainer extends React.Component {
render() {
return (
<div>
<Search />
<List />
<UserPopup />
</div>... |
src/templates/note.js | kbrgl/kbrgl.github.io | import React from 'react'
import PropTypes from 'prop-types'
import { Link, graphql } from 'gatsby'
import formatDate from '../utils/format-date'
import Layout from '../components/layout'
import { Row, Column } from '../components/grid'
import styles from './note.module.css'
const NoteTemplate = ({ data }) => {
co... |
tosort/2016/jspm/lib_react_103/components/step/index.js | Offirmo/web-tech-experiments | import React from 'react';
import ListItem from 'material-ui/lib/lists/list-item';
import Colors from 'material-ui/lib/styles/colors';
import IconButton from 'material-ui/lib/icon-button';
import MoreIcon from 'material-ui/lib/svg-icons/navigation/more-horiz';
import MoreVertIcon from 'material-ui/lib/svg-icons/naviga... |
chapter-06/hoc/src/proxy/ConnectHOC.js | mocheng/react-and-redux | import React from 'react';
const doNothing = () => ({});
function connect(mapStateToProps=doNothing, mapDispatchToProps=doNothing) {
function getDisplayName(WrappedComponent) {
return WrappedComponent.displayName ||
WrappedComponent.name ||
'Component';
}
return function(WrappedComponent) {
... |
src/components/video_list.js | aavrug/ReduxInitializer | import React from 'react';
import VideoItem from './video_item';
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return (
<VideoItem
onVideoSelect={props.onVideoSelect}
key={video.etag}
video={video} />
);
});
return (
<ul className="col-md-4 list-group">
{... |
consoles/my-joy-images/src/mocks/store.js | yldio/joyent-portal | import React from 'react';
import { ApolloProvider } from 'react-apollo';
import createClient from '@state/apollo-client';
export default ({ children }) => (
<ApolloProvider client={createClient()}>{children}</ApolloProvider>
);
|
springboot/GReact/src/main/resources/static/app/routes/outlook/containers/OutlookDetail.js | ezsimple/java | import React from 'react'
import {OverlayTrigger, Tooltip, Dropdown, MenuItem} from 'react-bootstrap'
import {Link} from 'react-router'
import _ from 'lodash'
import {connect} from 'react-redux'
import {outlookFetchMeesage} from '../OutlookActions'
import Moment from '../../../components/utils/Moment'
import HtmlRend... |
ide/static/js/tabs.js | Cloud-CV/IDE | import React from 'react';
class Tabs extends React.Component {
componentDidMount() {
$('#phaseTabs button').click(e => {
e.preventDefault();
if (e.target.id === 'train') {
this.props.changeNetPhase(0);
} else if (e.target.id === 'test') {
this.props.changeNetPhase(1);
}
... |
fields/types/date/DateColumn.js | Yaska/keystone | import React from 'react';
import moment from 'moment';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var DateColumn = React.createClass({
displayName: 'DateColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.obj... |
src/Wall.js | bhargav175/react-pong | import React from 'react';
class Wall extends React.Component{
constructor(args){
super();
this.radius = 1;
this.size = args.size;
this.position = args.position;
}
render(state){
const {context} = state;
context.save();
context.strokeStyle = '#fff';
context.fillStyle = '#3f51b5';
context... |
dev/index.js | ElistratovRoman/react-alphabet-sorter | import React from 'react'
import ReactDOM from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import Demo from './Demo.js'
const render = () => ReactDOM.render(
<AppContainer>
<Demo/>
</AppContainer>,
document.getElementById('demo')
)
render(Demo)
if (module.hot) {
module.hot.accept('./Demo... |
ui/src/components/member/MemberTable.js | yahoo/athenz | /*
* Copyright 2020 Verizon Media
*
* 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 t... |
src/App/App.js | ReactJsStudy/noryang | import React from 'react';
import Gnb from './Gnb';
const App = ({ children }) => (
<div id="wrap">
<Gnb />
<div id="contents">{children}</div>
</div>
);
export default App;
|
js/ShowCard.js | PansFortress/complete-intro-to-react | import React from 'react'
import { Link } from 'react-router'
const { string } = React.PropTypes
const ShowCard = React.createClass({
propTypes: {
poster: string,
title: string,
year: string,
description: string,
imdbID: string
},
render () {
const { poster, title, year, description } = t... |
fields/types/cloudinaryimage/CloudinaryImageFilter.js | kwangkim/keystone | import classNames from 'classnames';
import React from 'react';
import { SegmentedControl } from 'elemental';
var PasswordFilter = React.createClass({
getInitialState () {
return {
checked: this.props.value || true
};
},
toggleChecked (checked) {
this.setState({
checked: checked
});
},
renderTog... |
server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddVersionForm.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
src/plot/series/whisker-series.js | Apercu/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
generators/add/templates/relay/container.js | HsuTing/generator-cat | 'use strict';
import React from 'react';
import {QueryRenderer} from 'react-relay';
import environment from 'utils/environment';
import <%= queryName %>Query, {variables as <%= queryName %>Variables} from 'constants/query/<%= queryName %>Query';
/* eslint-disable react/display-name */
export default () => (
<Query... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PropsNotDefined.js | ylu1317/flow | // @flow
import React from 'react';
class MyComponent extends React.Component {
defaultProps: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component {
defaultProps: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
... |
node_modules/react-router/es6/Redirect.js | silky098/Youtube-React-Search | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { formatPattern } from './PatternUtils';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.st... |
src/index.js | Starnes81/ReduxBlogTut | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import promise from 'redux-promise';
import reducers from './reducers';
import PostsIndex from "./c... |
client/components/footer.js | vidi-insights/vidi-dashboard | 'use strict'
import React from 'react'
export default React.createClass({
render () {
return (
<footer className="footer txt-small txt-dimmed mb mt txt-center has-icon" role="contentinfo">
<div className="container-fluid">
<a href="https://github.com/nearform/vidi-dashboard/issues" class... |
src/layout/image/index.js | hechoendrupal/drupalconsole.com | import React from 'react';
import PropTypes from 'prop-types';
import { StaticQuery, graphql } from "gatsby"
const Image = (props) => (
<StaticQuery
query={graphql`
query {
allFile(filter: {sourceInstanceName: {in: ["images", "assets"]}}) {
edges {
node {
public... |
src/svg-icons/editor/show-chart.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorShowChart = (props) => (
<SvgIcon {...props}>
<path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"/>
</SvgIcon>
);
EditorShowChart = pure(EditorShowChart);
EditorShowChart.displayNa... |
packages/react-vis/src/plot/series/rect-series.js | uber-common/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
src/propTypes.es6.js | madbook/reddit-mobile | import React from 'react';
const {
array,
string,
number,
bool,
shape,
oneOfType,
arrayOf,
} = React.PropTypes;
const _listingSource = shape({
url: string.isRequired,
});
const _listingResolutions = arrayOf(shape({
width: number.isRequired,
height: number.isRequired,
url: string.isRequired,
}))... |
front/app/index.js | nudoru/learning-map | import 'babel-polyfill';
import 'isomorphic-fetch';
import React from 'react';
import ReactDOM from 'react-dom';
import ApplicationContainer from './js/ApplicationContainer'
// Globally available styles
import css from './sass/index.sass';
// ApplicationContainer loads config file and gets the user
// ApplicationCont... |
src/server.js | pavlosvos/krifominima | /**
* 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 'babel-polyfill';
import path from 'path';
import e... |
src/index.js | mattvoss/classes | import * as OfflinePluginRuntime from 'offline-plugin/runtime';
OfflinePluginRuntime.install();
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { browserHistory, Router } from 'react-router';
import EventEmitter from 'eventemitter3';
// import waterfall from 'async/waterfall';
// impo... |
server/sonar-web/src/main/js/apps/quality-profiles/components/App.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
app/containers/ModelManage/AddForm/index.js | bruceli1986/react-qdp | /*
*
* ModelManageAddForm
*
*/
import React from 'react';
import { connect } from 'react-redux';
import selectModelManageAddForm from './selectors';
import { Modal, Form, Input, Row, Col, Select } from 'antd';
import {
initAddFormAction,
setSubmitAction,
submitAddFormAction,
fetchProcessTypeAction, } from ... |
app/packs/src/components/QuillEditor.js | ComPlat/chemotion_ELN | import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import Quill from 'quill';
import Delta from 'quill-delta';
import _ from 'lodash';
import { ButtonToolbar, DropdownButton, MenuItem, OverlayTrigger, Popover, Button } from 'react-bootstrap';
const toolbarOptions = [
[... |
docs/src/examples/elements/Image/States/ImageExampleDisabled.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Image } from 'semantic-ui-react'
const ImageExampleDisabled = () => (
<Image src='/images/wireframe/image.png' size='medium' disabled />
)
export default ImageExampleDisabled
|
real-world-thunk/src/containers/Root.dev.js | saltas888/redux-relax | import React from 'react'
import PropTypes from 'prop-types'
import { Provider } from 'react-redux'
import routes from '../routes'
import DevTools from './DevTools'
import { Router } from 'react-router'
const Root = ({ store, history }) => (
<Provider store={store}>
<div>
<Router history={history} routes={... |
examples/query-params/app.js | neebz/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
var User = React.createClass({
render() {
var { query } = this.props.location;
var age = query && query.showAge ? '33' : '';
var { userID } = this.props.params;
return (
<div className="User">
<h1>User id: {u... |
src/svg-icons/action/theaters.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTheaters = (props) => (
<SvgIcon {...props}>
<path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/>
</SvgI... |
src/svg-icons/av/repeat.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRepeat = (props) => (
<SvgIcon {...props}>
<path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"/>
</SvgIcon>
);
AvRepeat = pure(AvRepeat);
AvRepeat.displayName = 'AvRepeat';
AvRepeat.mu... |
src/beComponents/BookForm.js | BeAce/expressjs-react-blog | /* eslint-disable */
import React, { Component } from 'react';
import _ from 'lodash';
export default class BookForm extends Component {
constructor(props) {
super(props);
this.state = {
model: {
// 专著、论文集、学术论文、报告
bookType: 'M',
author: '',
name: '',
address: '',
... |
src/example/Example.js | gaearon/component-router | import React from 'react';
import ReactSwap from 'react-swap';
import {ComponentRouter, LocationHtml4} from '../index';
import styles from './Example.css';
import {getDefault} from '../index';
import RedBlock from './RedBlock';
import GreenBlock from './GreenBlock';
import DynamicList from './DynamicList';
import Bl... |
src/svg-icons/notification/sync.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSync = (props) => (
<SvgIcon {...props}>
<path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25... |
client/src/modules/Recommended.js | showmethewei/tuna-io | import React from 'react';
import { browserHistory, Link } from 'react-router';
import { Menu, NavItem, Media, Heading, Text, Divider } from 'rebass';
export default class Recommended extends React.Component {
constructor(props) {
super(props);
this.state = {
recVideos: [],
};
}
componentDid... |
client/src/app/parts/profile/profileModule.js | Einsteinish/DumbNode | import React from 'react';
import {Route} from 'react-router';
import {bindActionCreators} from 'redux';
import {createActionAsync, createReducerAsync} from 'redux-act-async';
import {connect} from 'react-redux';
import ProfileView from './views/profileView';
function Resources(rest){
return {
get() {
re... |
frontend/src/app/components/Loading.js | 6a68/testpilot | import React from 'react';
export default function Loading() {
return (
<div className="loader">
<div className="loader-bar"></div>
<div className="loader-bar"></div>
<div className="loader-bar"></div>
<div className="loader-bar"></div>
</div>
);
}
|
examples/js/custom/search/custom-search-panel-1.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
/* eslint no-alert: 0 */
import React from 'react';
import ReactDOM from 'react-dom';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i... |
src/entypo/Swap.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--Swap';
let EntypoSwap = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M14,5H4V3L0,6.5L4,10V8h10V5z M20,13.5L16,10v2H6v3h10v2L20,13.5z"/>
</EntypoIcon>
);
export default E... |
src/interface/icons/Cancel.js | sMteX/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/search/?q=circled%20cross&i=1144421
// Created by johartcamp from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}>
<path d="M 50 5 C 25.18272 5 5 25.1827 5 50 C 5 7... |
examples/huge-apps/components/App.js | nickaugust/react-router | /*globals COURSES:true */
import React from 'react'
import Dashboard from './Dashboard'
import GlobalNav from './GlobalNav'
class App extends React.Component {
render() {
return (
<div>
<GlobalNav />
<div style={{ padding: 20 }}>
{this.props.children || <Dashboard courses={COURSES... |
src/svg-icons/image/control-point-duplicate.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageControlPointDuplicate = (props) => (
<SvgIcon {...props}>
<path d="M16 8h-2v3h-3v2h3v3h2v-3h3v-2h-3zM2 12c0-2.79 1.64-5.2 4.01-6.32V3.52C2.52 4.76 0 8.09 0 12s2.52 7.24 6.01 8.48v-2.16C3.64 17.2 2 14.79 2 ... |
src/utils/domUtils.js | nickuraltsev/react-bootstrap | import React from 'react';
import canUseDom from 'dom-helpers/util/inDOM';
import getOwnerDocument from 'dom-helpers/ownerDocument';
import getOwnerWindow from 'dom-helpers/ownerWindow';
import contains from 'dom-helpers/query/contains';
import activeElement from 'dom-helpers/activeElement';
import getOffset from 'd... |
github/index.android.js | vlivanov/react-native-github-client |
import React from 'react';
import {
AppRegistry,
} from 'react-native';
import App from "./App";
AppRegistry.registerComponent('github', () => App);
|
src/front-end/js/components/HelloWorld.js | aleksey-gonchar/emmofret | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { show } from '../actions/ModalActions.js'
import { Button } from 'react-bootstrap'
function actions (dispatch) {
return {
actions: {
show: bindActionCreators(show, dispatch)
}
}
}
@con... |
react-native/project/my_first_rn_app/App.js | khaosdoctor/my-notes | import React from 'react'
import { StatusBar } from 'react-native'
import { Home } from './src/pages/Home'
export default function App () {
return (
<>
<StatusBar barStyle='light-content' />
<Home />
</>
)
}
|
app/javascript/mastodon/features/ui/components/bundle_modal_error.js | Nyoho/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import IconButton from '../../../components/icon_button';
const messages = defineMessages({
error: { id: 'bundle_modal_error.message', defaultMessage: 'Something went wrong while loading this comp... |
src/components/Logo.js | aalselius/Test | import React from 'react';
const Logo = (props) => {
return (
<div className="logo">
<img src={require('../img/logo.png')} alt="Giphy Logo"/>
</div>
);
}
export default Logo; |
client/src/components/Root.js | wolnewitz/raptor-ads | import React from 'react';
import { Provider } from 'react-redux';
import { Router, Route, browserHistory, IndexRoute } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import LandingPage from './LandingPage';
import Signup from './Signup/Signup';
import Login from './Login';
import Profi... |
app/javascript/mastodon/components/column_collapsable.js | h-izumi/mastodon | import React from 'react';
import PropTypes from 'prop-types';
class ColumnCollapsable extends React.PureComponent {
static propTypes = {
icon: PropTypes.string.isRequired,
title: PropTypes.string,
fullHeight: PropTypes.number.isRequired,
children: PropTypes.node,
onCollapse: PropTypes.func,
}... |
cheesecakes/plugins/content-manager/admin/src/components/InputJSONWithErrors/index.js | strapi/strapi-examples | /**
*
* InputJSONWithErrors
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { isEmpty, isFunction } from 'lodash';
import cn from 'classnames';
// Design
import Label from 'components/Label';
import InputDescription from 'components/InputDescription';
import InputErrors from 'components... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/badge/index.js | bhathiya/test | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
src/components/icons/Calendar.js | niekert/soundify | import React from 'react';
import PropTypes from 'prop-types';
const Calendar = ({ fill, ...props }) =>
<svg fill={fill} viewBox="0 0 24 24" {...props}>
<path d="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 ... |
lib/shared/screens/public/screens/schema-entry/index.js | relax/relax | import Component from 'components/component';
import Viewer from 'components/viewer';
import React from 'react';
import PropTypes from 'prop-types';
import {dataConnect} from 'relate-js';
@dataConnect(
(state) => ({
schemaSlug: state.router.params.schemaSlug,
schemaEntrySlug: state.router.params.slug
}),
... |
lib/components/Bootstrap.js | kern/puddin | import React from 'react'
export default class Bootstrap extends React.Component {
render() {
const data = JSON.stringify(this.props.data.toString())
const js = `Isomorph(${data})`
return <script dangerouslySetInnerHTML={{ __html: js }} />
}
}
|
examples/src/components/DisabledUpsellOptions.js | mcanthony/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var DisabledUpsellOptions = React.createClass({
displayName: 'DisabledUpsellOptions',
propTypes: {
label: React.PropType... |
src/svg-icons/image/filter-frames.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterFrames = (props) => (
<SvgIcon {...props}>
<path d="M20 4h-4l-4-4-4 4H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H4V6h4.52l3.52-3.5L15.52 6H20v14zM18 8H6v10h12"/>
</... |
src/routes.js | thebigbrain/recorder | import React from 'react';
import {Route, IndexRoute, Link} from 'react-router';
import Main from 'components/main';
import Example from 'components/example';
require("styles/app.css")
class UsersIndex extends React.Component {
render() {
return (
<div>
<h3>UsersIndex</h3>
<Link to="/... |
node_modules/react-bootstrap/es/Breadcrumb.js | ASIX-ALS/asix-final-project-frontend | 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 ... |
node_modules/react-router-dom/es/NavLink.js | lousanna/sinatrademo | 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; };
var _typeof = typeof Symbol === "function" && typeof Symbol.i... |
test/integration/css-fixtures/bad-custom-configuration-arr-7/pages/_app.js | JeromeFitz/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
client/src/js/react-bootstrap-jsx.js | lologarithm/fastbible | import React from 'react';
import {Glyphicon, Input, ProgressBar} from 'react-bootstrap';
export default {
Glyph: React.createFactory(Glyphicon),
Input: React.createFactory(Input),
ProgressBar: React.createFactory(ProgressBar)
};
|
packages/showcase/legends/horizontal-discrete-color.js | uber/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
src/containers/VisitPage.js | codeforboston/cliff-effects | import React, { Component } from 'react';
import {
Container,
Responsive,
} from 'semantic-ui-react';
import { Redirect } from 'react-router-dom';
// DATA MANAGEMENT
import { setNestedProperty } from '../utils/setNestedProperty';
import { cloneDeep } from 'lodash';
import { convertForUpdate } from '../utils/conver... |
client/src/containers/Home.js | MattMcFarland/reactathon | import React from 'react';
import { Logo, Center } from '../components/partials/Elements';
export const Home = () => (
<section>
<h1>
<Center>
<Logo size='40pt'/>
</Center>
</h1>
<hr/>
</section>
);
|
src/decorators/withKeyboardEvent.js | orionsoft/parts | import React from 'react'
import isArray from 'lodash/isArray'
import autobind from 'autobind-decorator'
import without from 'lodash/without'
import union from 'lodash/union'
import clone from 'lodash/clone'
import isEqual from 'lodash/isEqual'
import debounce from 'lodash/debounce'
import keyCodes from '../helpers/key... |
packages/react-widgets/stories/NumberPicker.js | jquense/react-widgets | import React from 'react'
import Numberpicker from '../src//NumberPicker'
let props = {
onChange: console.log.bind(null, 'change'),
}
export const Default = () => <Numberpicker {...props} />
export const format = () => (
<Numberpicker {...props} min={250} format="d" defaultValue={2405.43534} />
)
export const m... |
node_modules/rc-animate/es/AnimateChild.js | raptor1989/MobileHeader | import _typeof from 'babel-runtime/helpers/typeof';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inh... |
app/containers/HomePage.js | nantaphop/redd | // @flow
import React, { Component } from 'react';
import styled from 'styled-components'
import Grid from 'material-ui/Grid'
import Collapse from 'material-ui/transitions/Collapse';
import Drawer from 'material-ui/Drawer';
import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles';
import { withTheme } from... |
examples/01 Dustbin/Multiple Targets/index.js | colbyr/react-dnd | import React from 'react';
import Container from './Container';
export default class DustbinMultipleTargets {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/01%20Dustbin/Multiple%20Targets'>Browse the Source</a></b>
</p>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.